Monday, February 2, 2009

Re: Cannot get aros_acos to populate, so cannot access anything

Oh I just realised the above code where it says $aroAlias, $acoAlias I
assume you should replace it with the right arcoAlias and $acoAlias I
think?? Anyway, still doesnt work if I enter:-

cake acl grant Administrators Users all
cake acl grant 1 Users all

still get same error whatever I try, and the following exists in the
initDB in users_controller.php

function initDB()
{
$group =& $this->User->Group;

$group->id = 1;
$this->Acl->allow($group, 'controllers');

$group->id = 2;
$this->Acl->deny($group, 'controllers');
$this->Acl->allow($group, 'controllers/Posts');
$this->Acl->allow($group, 'controllers/Widgets');

$group->id = 3;
$this->Acl->deny($group, 'controllers');
$this->Acl->allow($group, 'controllers/Posts/add');
$this->Acl->allow($group, 'controllers/Posts/edit');
$this->Acl->allow($group, 'controllers/Widgets/add');
$this->Acl->allow($group, 'controllers/Widgets/edit');
}


--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: