Dealing with Advanced Page Permissions Programatically
Permalink
I'm guilty of posting about this a while ago, but I've searched through the documentation all over the place and found nothing.
I'm trying to make it so that when a user creates a new page (thats the easy part), that specific user is given specific permission on that page WITHOUT LOSING THE PERMISSIONS THAT PAGE INHERITS FROM ITS PARENT.
Of all the awesome new documentation on permissions and such, I still cant find anything to answer this question.
If anyone has any ideas itd be greatly appreciated!
I'm trying to make it so that when a user creates a new page (thats the easy part), that specific user is given specific permission on that page WITHOUT LOSING THE PERMISSIONS THAT PAGE INHERITS FROM ITS PARENT.
Of all the awesome new documentation on permissions and such, I still cant find anything to answer this question.
If anyone has any ideas itd be greatly appreciated!
You're the man. Exactly what I was looking for. Thanks.
Actually, on the same note - is there a way to get a list of users that have permissions to a certain page?
This page could help youhttp://www.concrete5.org/documentation/developers/permissions/conte...
http://www.concrete5.org/community/forums/chat/social-network-with-...
Basically, if you use that function, it should automatically grab the current inherited permissions for the page, and then apply whatever new permissions you set using the Page::assignPermissionSet() function.