Hi,
I'm starting working with Acl and trying to get it work (or better
understand how it works)
My aim is to grant/deny users with a role to do some things.
I got tables with user(.role_id)->role association
aros:
Role1 (super user)
-- Role 2 (base user)
Role3 (nobody)
acos:
ROOT
-- Activities
grant ROOT * to Role1
deny ROOT * to Role 2 and 3
grant Activities * Role2
When adding an Activity I get
AclNode::node() - Couldn't find Aro node identified by "Array(...)"
for User 1 (Role1)
in models/activity.php I've tryed returning from parentNode()
if exists a rule
array('User' => array('id' => $groupNode[0]['Aro']['foreign_key']));
else
return array('Role' => array('id' =>
$this->User->data['User']['role_id']));
(in this case exists, but still get the warning)
Is this the correct approach ?
Thanks in advance,
Luca
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php