Manol Posted July 16, 2013 Posted July 16, 2013 I was thinking about creating a module to hide pages to users in the admin area with certain role, based on Soma's HiddenAdminPages, how can I get: - an array of all admin pages with a role of for example "manager" that have "page-edit" access? Thank you.
Manol Posted July 16, 2013 Author Posted July 16, 2013 I'll use that: $page->createdUser->name $page->editable()
Wanze Posted July 16, 2013 Posted July 16, 2013 - an array of all admin pages with a role of for example "manager" that have "page-edit" access? Do you mean pages (children) which exist under "Admin"? Pages don't have a role assigned, but your users have. Not sure what you want to do exactly, could you explain in more detail? Thanks
Manol Posted July 16, 2013 Author Posted July 16, 2013 Hello Wanze. My idea has already been discussed, but I think many people is still interested in that subject and I would like to take a different approach (I guess). The idea is to show only certain pages to some users in the admin area, because each page is created by a user I thought it could be a good idea (maybe not) to check and show only the pages that have been created by himself, which has permission to edit those pages. I user will see only pages created by himself in the admin area. Regards.
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