[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [BP][FIX] WYSIWYCA: Prevent PDF export button without tiki_p_export_pdf permission

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <696e36499b053_2c181e88181b6@gitlab-sidekiq-low-urgency-cpu-bound-v2-86b46d59c7-ccxhs.mail>

luci pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
e053c1be by Landry Bitege at 2026-01-19T13:41:19+00:00
[BP][FIX] WYSIWYCA: Prevent PDF export button without tiki_p_export_pdf permission
---
* [FIX] WYSIWYCA: Prevent PDF export button without tiki_p_export_pdf permission
---
* [FIX] WYSIWYCA: hide PDF export button without permission

See merge request tikiwiki/tiki!9358

(cherry picked from commit cb21d1fcf444771187385d179aa3f49938718e2d)

See merge request tikiwiki/tiki!9369

- - - - -


1 changed file:

- templates/tiki-wiki_topline.tpl


Changes:

=====================================
templates/tiki-wiki_topline.tpl
=====================================
@@ -148,7 +148,7 @@
                                 {icon name="heading"} <span>{tr}Expand all collapsible headings{/tr}</span>
                             </a>
                         {/if}
-                        {if $pdf_export eq 'y' and $pdf_warning eq 'n' and $prefs["feature_wiki_print"] eq 'y'}
+                        {if $pdf_export eq 'y' && $pdf_warning eq 'n' && $prefs["feature_wiki_print"] eq 'y' && $tiki_p_export_pdf eq 'y'}
                             <a class="dropdown-item generate-pdf" href="tiki-print.php?{query _keepall='y' display="pdf" page=$page}">
                                 {icon name="pdf"} {tr} PDF{/tr}
                                 {$hasPageAction="1"}



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e053c1be34c5901c69411af89d102a5dcf436996

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e053c1be34c5901c69411af89d102a5dcf436996
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.