louisstephens Posted February 26, 2018 Posted February 26, 2018 So I have a module that builds a dashboard (following the tutorial: https://processwire.com/blog/posts/building-custom-admin-pages-with-process-modules/#handling-user-input-using-forms-amp-inputfields). It all works great now that I have gotten some kinks worked out. However, the page is saved under admin which is hidden from users that are not superusers. Is there a way to allow the user, with a certain role, to view this newly created page, and only this page?
LexSanchez Posted February 26, 2018 Posted February 26, 2018 Hi Louis: In the information array of your module you can add 'permission' => 'permission-name', add this permission to the role you need edit or use this module. 3
louisstephens Posted February 26, 2018 Author Posted February 26, 2018 Thank you Lex Sanchez! I was using 'permission', but foolishly used the role instead of the permission.
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