Jump to content

[solved] Changing permissions of a children of admin template


nickngqs
 Share

Recommended Posts

How do I change the permissions for Who can access this page for a single page.

This page inherits the admin template.

I'm currently creating a new page called Settings using admin template and assigning it to a process of a module. I can see the Settings tab in superuser, but I can't see them in a role I defined called 'client'.

So, how can i control what the client sees for admin template? Is there a page specific overwrites for permissions. I've tried allowing access in admin template view, edit. But still doesn't work

Edited by horst
added "[solved]" to the post title
Link to comment
Share on other sites

Access for Process modules is managed using the 'permission' item in the getModuleInfo() array. You can also create the permission and the page for the Process via getModuleInfo(). You'll need to uninstall then reinstall your module for the settings to take effect.

See Ryan's ProcessHello demo module.

And the comments in the Process class.

  • Like 4
Link to comment
Share on other sites

Hi thanks! Managed to follow your tips. However, I still unable to see the tab on the masthead.

I did managed to add the permissions and add them to my Role 'Client'. So previously, I can't access url/admin/settings. But right now I can access url/admin/settings using the permission.

But still unable to figure out how to see the Settings tab.

This is the superuser view
superuser.png.7f09fb97d6db8266778127600925d6d1.png

While the client view is
client.png.4e4f7c8de0f7a25be8fcca924a4abe62.png

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...