Hi,

My ARO tree:

[1]
    [2]
[3]
[4]

My ACO tree:

[1] Root
    [2] Pages
        [3] display

A permission in the aros_acos table:

id, aro_id, aco_id, _create, _read, _update, _delete
1, 4, 2, '0', '0', '0', '0'

i.e. Grant ARO 4 access to ACO 2 ('Pages' controller).

However, this check returns false:

$this->Acl->check(array('model' => 'Group', 'foreign_key' => 4),
'Root/Pages/display')

So does this one (without the 'Root/' prefix):

$this->Acl->check(array('model' => 'Group', 'foreign_key' => 4),
'Pages/display')

What's wrong? Don't child nodes inherit from their parents?

I actually changed the aco_id in the permission to 1 and 2 as well, and
check() still does not return true.

... help! :-)

Glen.
-- 
View this message in context: 
http://www.nabble.com/Please-help----Acl-node-inheritance-tf4874972.html#a13949004
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to