Jump to content

Enabling access to pages that appear under the Setup menu to other users


Tyssen
 Share

Recommended Posts

I managed to figure this out last year but when I've come to do it again today, something's not working, and I can't find the forum threads that originally led me to the solution.

I have the Processwire general settings module installed. When you install it, it automatically gives you a menu item under the Setup menu. I want to give non superuser members access to that too.

What I found before said to add a permission to the getModuleInfo function for the module. I've done that, added a permission in the control panel, and assigned it to the role but it's not showing up under Setup when I log in as that user. So I must've missed a step, but can't think what it might be.

Link to comment
Share on other sites

Hi @Tyssen

What I usually do is :

1. Edit the getModuleInfo()'s module

[...]
'page' => array(
	'name' => 'general_settings',
	'parent' => 'setup',
	'title' => 'General settings',
),
'permission'  => 'global-site-settings',
'permissions' => array(
	'global-site-settings' => 'Access to Global Site Settings.'
),
[...]

 

2. Uninstall / re-install the module

3. Add a new role :  site-settings

4. Add to this role the permission :  global-site-settings

5. Add the site-settings role to the user

6. Logoff / login the user

 

No extra steps required.

  • Like 4
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...