Using AuthComponent and ACL in CakePHP 1.2 « Another Cake Baker. The uniqueness issues and also an issue with inheritence has been solved in changset 5588 Important Update (2007-07-24) : Brian brought to my attention a problem with multiple actions that have the same name. This problem is due to an incorrect Sql query in db_acl.php. I have filed Trac Ticket #2976 which includes a patch, unit test and test fixtures. So I’ve shown you how to create a User Model that can be used for ACL, but what is next? The AuthComponent allows you to both authenticate and authorize your users in a relatively simple manner – once you know how.
Setting up Aco’s, Aro’s and Permissions First of, we need to have some Aro’s and Aco’s. Aco’s took me a little longer to figure out. Your tree of Aco aliases should look like the following: ROOT |-Controller1 |-index |-action1 |-action2 |-Controller2 |-index |-action1 Pretty straight forward once you know how. Then all you need to do is grant Users access to actions. Using AuthComponent for Authentication Final Result Like this: ACL with Groups « Another Cake Baker. In a previous article I explained how to use the AclBehavior to create models that can be used for ACL. Now the situation is – I want to assign permission to groups and have Users be a member of a group. I thought this would be easy using the AclBehavior. Turns out I was right, but it took me while to realise I was right. So we are going to use the following Group model. It should look familiar. The database has a parent_id field in the groups table.
<? Now, for ACL to work the easy way, we need to have our users in the Aro table as well. Thats all pretty simple and straight forward. <? Now your User Aros are children of Group Aros. Like this: Like Loading... Biometric Consortium.