Saturday, March 23, 2013

Re: Check if permission is inherited

Recently I have been "rolling my own" to get this. I came up with a process, the work is proprietary.... My suggestion would be to look into the using the Aro's (user/group) getPath and using the IDs to look up the specific permissions (aros_acos table) . From there you can look up your Aco data and see where the permission records line up - giving you if they are inherited or not based on the parent_id in the Acos.

I did a lot of digging in the Libs to get this idea out, and was able to bypass looking up each and every permission for each ARO/ACO pair.

Kind of a convoluted process and not very clear on my part, I'm sure, but for now it's all I can offer. I'll try to keep an eye on this thread and help where i can, the permissions certainly aren't an easy thing to tackle.

--
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: