In my script, I have a Users node which is a parent of an edit node. For each user, I create a permission to Users/edit/[user_id] by doing the following command (for a User with alias 'ripley' and user_id '23')
$this->Acl->grant('ripley', 'Users/edit/23', '*'); This works for me. I am using Auth in 'actions' mode rather than 'crud' mode. grant and allow are really the same thing, so this same syntax should work for you as well. On Jan 18, 6:51 am, NilsR <[EMAIL PROTECTED]> wrote: > Hi all, > > When I try to use > > $this->Acl->allow($aro['Aro']['id'],$aco['Aco']['id'], $actions); > > I get this error: Warning (512): DB_ACL::allow() - Invalid node [CORE/ > cake/libs/controller/components/acl.php, line 362] > > But these Aro and Aco DO exist. Well then i thought I have to do it > like Acl::check without aliases: > > $this->Acl->allow( array( 'model '=> $aco['Aro']['model'], > 'foreign_key' => $aco['Aro']['foreign_key']), $aco['Aco']['model'], > $actions); > > But now i get an even weirder error: > > Missing Database Table > Error: Database table lms_models for model model was not found. > > What am i doing wrong here? > > Greetings, Nils --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---