Skip to content

Commit

Permalink
Fix issue processwire/processwire-issues#544 where FieldsetTab in Use…
Browse files Browse the repository at this point in the history
…r editor was not viewable to non-superuser with user-admin permission
  • Loading branch information
ryancramerdesign committed Mar 28, 2018
1 parent b7e90f8 commit deb4488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wire/modules/PagePermissions.module
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ class PagePermissions extends WireData implements Module {
else if(!$page->template || ($checkFile && !$page->template->filenameExists())) $viewable = false;
else if($user->isSuperuser()) $viewable = true;
else if($page->process) $viewable = $this->processViewable($page);
else if($page instanceof User && $user->hasPermission('user-admin')) $viewable = $this->userEditable($page);
else if(!$user->hasPermission("page-view", $page)) $viewable = false;
else if($page->isTrash()) $viewable = false;

Expand Down

0 comments on commit deb4488

Please sign in to comment.