Adding the following to acl.test.php cause an error (and an
exception):

function testUrlAcoInheritance() {
        $this->Acl->allow('Micheal', 'ROOT/tpsReports');
        $result = $this->Acl->check('Micheal', 'ROOT/tpsReports/list');
        $expected = true;
        $this->assertEqual($result, $expected);
}

The problem is that "list" action is not defined in acos table.

The similar code is used when accessing urls like /controller/action
so I have to have a separate aco record for each action in a system
instead of having a single aco for every controller. For me, it seems
to be a bug since it's very wasteful in the case of a system with
hundreds of actions.

Here are the questions:
1. Is such behaviour expected or is it just a bug?
2. If it's expected, are there any ideas (a rationale) behind not
making aco permissions inheritable (they're actually inheritable but
not in the case when there is no record for the requested aco)?
3. Is anything planned to fix the issue (fix the bug or make an
improvement)?

Thanks.

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

Reply via email to