Record-level ACL. I did that for a Cake site and it worked quite well. In that case also I only needed to set permissions by Group, so it was a little bit simpler than if it was per user.
The client who hired me to do it is long out of the picture, so it's languished in the 1.2.x codebase. (The site is a company's private intranet, so hopefully they're at least somewhat protected.) That said, I've been meaning to update the code because I may need to re-use it soon. If you can give me a day or two I'll strip out the extraneous (and sensitive) stuff and pass it along to you with a few notes.
On Mon, May 20, 2013 at 10:52 PM, Jeff Smith <jeff@unbiasedgeek.com> wrote:
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.
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:
Post a Comment