[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] ability to print pdf from specific page's edit permission
"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <699c39cd83406_3b186e7413752@gitlab-sidekiq-low-urgency-cpu-bound-v2-858756f8df-dwwmw.mail> |
Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
f2048d80 by Victor Emanouilov at 2026-02-23T13:27:28+02:00
[FIX] ability to print pdf from specific page's edit permission
- - - - -
1 changed file:
- lib/core/Services/PDF/Controller.php
Changes:
=====================================
lib/core/Services/PDF/Controller.php
=====================================
@@ -16,7 +16,12 @@ class Services_PDF_Controller
global $prefs;
// edit permission is needed to convert arbitrary text to PDF
- if (! Perms::get()->edit) {
+ if ($input->page->pagename()) {
+ $perms = Perms::get('wiki page', $input->page->pagename());
+ } else {
+ $perms = Perms::get();
+ }
+ if (! $perms->edit) {
throw new Services_Exception_Denied();
}
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/f2048d80a22616137543877d50006bb3abdf435e
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/f2048d80a22616137543877d50006bb3abdf435e
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs