Hi,
I have a problem with ACL.
My Aros:
Public (id: 1 parent_id: null)
|- Admin (id: 2 parent_id: 1)
|- admin1 (id: 3 parent_id: 2)
My Acos:
ROOT (id: 1 parent_id: null)
|- users (id: 2 parent_id: 1)
My Acos_Aros:
1. aco_id: 1 aro_id: 1 deny all acctions
2. aco_id: 2 aro_id: 2 allow all actions
$this->Acl->check('admin1', 'users');
returns false
but when my Acos_Aros are:
1. aco_id: 1 aro_id: 1 deny all actions
2. aco_id: 2 aro_id: 1 allow all actions
$this->Acl->check('admin1', 'users');
returns true.
In debug I see that it does only one select on permissions and it
selects only where Aro.id is 1, while it should be three selections in
my opinion. (Firstly it does selection on Aros tree, ordered by DESC,
and the last one is Public).
Any suggestions ?
--
Aurelijus Valeia
www.Aurelijus.eu
www.Pixel.lt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---