Skip to content
Snippets Groups Projects
Commit 7ec3e119 authored by pianomansam's avatar pianomansam Committed by Kevin Kaland
Browse files

Issue #2839942 by pianomansam: Users with Publish all PDFs permission also...

Issue #2839942 by pianomansam: Users with Publish all PDFs permission also need Administer PDFs permission
parent 2c9aca5a
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ class FillPdfAccessHelper implements FillPdfAccessHelperInterface { ...@@ -65,7 +65,7 @@ class FillPdfAccessHelper implements FillPdfAccessHelperInterface {
$cachedAllowed = AccessResult::allowed() $cachedAllowed = AccessResult::allowed()
->cachePerUser() ->cachePerUser()
->cachePerPermissions(); ->cachePerPermissions();
if ($can_publish_all && $is_admin) { if ($can_publish_all || $is_admin) {
return $cachedAllowed; return $cachedAllowed;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment