Search code examples
permissionstheoryusergroups

Hierarchical Group Permissions Theory/Resources?


Does anyone know of some good resources related to setting up heirarchical user account systems? I'm currently setting one up and am struggling with some of the more complex logic (especially with determining permissions). I was hoping I might be able to find some resources to help me along.

Some Background: I'm building a user account system for a web CMS that allows for a nested group hierarchy. Each group can be allowed/denied access to read, write, add, and delete (either explicitly for that group, or implicitly by one of its parents). As if that weren't complicated enough, the system also allows for users to be members of multiple groups. -- This is where I'm stuck. I've got everything set up, but I'm struggling with the actual logic for determining pemissions for a given user.


Solution

  • The manual for CakePHP has an excellent description of how Access Control Lists work.

    http://book.cakephp.org/2.0/en/core-libraries/components/access-control-lists.html