I have 2 groups which are added by their respectful controller/model (Agent, Scout) So whena Agent or Scout is created in the AROS Table is shows up id parent_id model foreign_key alias lft rght 92 3 Scout 4 NULL 104 105 105 4 Agent 3 NULL 196 197
BuildACL function and initDB But I know there is something wrong with my initDB setup because I get: Warning (512): AclNode::node() - Couldn't find Aro node identified by "Array ( [Aro0.model] => User [Aro0.foreign_key] => 3 ) " [CORE/cake/libs/model/db_acl.php, line 148] There is no User Model...not sure why its looking for User? How would you fix this initDB? function initDB() { $role =& $this->User->Role; //Allow admins to everything $role->id = '1'; $this->Acl->allow($role, 'controllers'); //allow managers $role->id = '2'; $this->Acl->deny($role, 'controllers'); $this->Acl->allow($role, 'controllers/Experiences'); $this->Acl->allow($role, 'controllers/Notes'); $this->Acl->allow($role, 'controllers/Portfolios'); $this->Acl->allow($role, 'controllers/Teams'); //allow Agents to $role->id = '3'; $this->Acl->deny($role, 'controllers'); $this->Acl->allow($role, 'controllers/Experiences'); $this->Acl->allow($role, 'controllers/Notes'); $this->Acl->allow($role, 'controllers/Portfolios'); $this->Acl->allow($role, 'controllers/Teams'); //allow Scouts to $role->id = '4'; $this->Acl->deny($role, 'controllers'); $this->Acl->allow($role, 'controllers/Teams/scout_view'); } Dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---