Federico Posted March 17, 2018 Share Posted March 17, 2018 Hello, I'm sure it requires a simple hook to hide the entire Pages tab in admin (for non-superusers), but none of the post in this forum nor the hooks directory seem providing an answer as far as I know. looking for adding the hook in ready.php, like this example $wire->addHookAfter('Page::listable', function(HookEvent $event) { // BUT I AM LOOKING TO HOOK THE ENTIRE TAB CALLED PAGES, NOT JUST THE LIST INSIDE $page = $event->object; $user = $this->user; if($this->wire('user')->hasPermission('example')) { $event->return = false; } }); someone more experienced? thanks a lot Link to comment Share on other sites More sharing options...
adrian Posted March 17, 2018 Share Posted March 17, 2018 http://modules.processwire.com/modules/admin-restrict-page-tree/ 2 Link to comment Share on other sites More sharing options...
Federico Posted March 17, 2018 Author Share Posted March 17, 2018 Thank you @adrian 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now