I've set this in my AppController.php
$this->Auth->authorize = array(
'Actions' => array(
'actionPath' => 'controllers/'
)
);
This is in my Aco table:
id parent_id model foreign_key alias lft rght
25 NULL NULL NULL controllers 1 2
This is my Aro table:
id parent_id model foreign_key alias lft rght
1 1 Group 1 NULL 27 30
15 14 User 1 NULL 28 29
This is my Aco_Aro table:
id aro_id aco_id _create _read _update _delete
15 1 25 1 1 1 1
And i get this error:
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:
Aro: Array
(
[User] => Array
(
[id] => 1
[username] => Test
[group_id] => 1
[created] => 2012-03-24 22:47:33
[modified] => 2012-03-24 22:47:33
)
)
Aco: controllers/Posts/index
The user Test belongs the Aro 14 as seen in your Aro table. The parent_id field in the table Aro defines the tree.
And Users // I have users table as
My Aro table would be
From your Aro/Acl setup, cake's ACL component is not able to find 14. If you want to make your life easier you can try Acl Plugin. This really simplifies some obvious tasks.