Jump to content

Access pages under admin for a non superuser role


BR2 Studio
 Share

Recommended Posts

Hi,

I am using a modified version of ProcessWire's Apeisa shop module for a project. I would like give access to a group of users with a given role to enable only the "Manage orders" page in the navigation. This page uses "admin" template like most of other pages under Administration page.

The role has viewing/editing premissions, but pages under "admin" are not visible at all. I have given the required permissions in admin template.

How could enable to a role to see pages under admin? Is there a way to give different access to pages instead of templated?

Link to comment
Share on other sites

Finally I have found the solution. Looking at built in modules I found the way how could I add new roles to modules:

permission' => 'manage-orders', 
'permissions' => array('manage-orders' => 'Manage orders'),

Added them to getModuleInfo() function, reinstall the module and now I can manage trough roles. That's why I like this CMS.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...