Monday, May 20, 2013

Tree Based Permissions

I want to be able to control access to items.  The items will be organized via a tree.  I want to be able to give permission to various branches of the item tree to groups who will also be organized in a tree.  I took a look at the built in ACL method but it looks like it is limits to restricting access based on controller actions.  e.g. You could give a group access to add a post, site.com/posts/add or a group could delete posts site.com/posts/delete.  But what if I want to let group A add/edit/delete items in branch X of the tree and group B add/edit/delete in branch Y. 

I could write my own code but I hate reinventing the wheel.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: