permission view custom pages
jackmaessen                
                
                     ✭✭✭                
            Version: 2.0.18.10
I use the custompages plugin and in one of the pages, i want set the permission to view this page only for admin and Administrators.
I now have this line in the page:
if (!Gdn::Session()->CheckPermission('Plugins.Pockets.Manage')) return FALSE;
I noticed that it is now only viewable for the admin and not for those who have Administrator permissions. 
How can i make this viewable for admin and Administrators?
(All checkboxes for the Administrator role are checked in Roles and Permissions)
            Tagged:
            
        
0          
            
        
            
Comments
try
assuming only Admin role can edit users.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
solution found; line above must be this one:
if (!Gdn::Session()->CheckPermission('Garden.Settings.Manage')) return FALSE;I tested the page with with normal member logged in and non logged in users and both could not see the page.
@peregrine
your solution also works fine, just tested it. Only visible for administrators. Thanks for support.