I believe that this is a variation of https://trac.cakephp.org/ticket/2976
Geoff -- http://lemoncake.wordpress.com On Aug 27, 1:34 am, "Aurelijus Valeia" <[EMAIL PROTECTED]> wrote: > Hello again, > i fixed this editing cake\libs\controller\components\acl.php > Changed this line: > for ($i = count($aroPath) - 1; $i >= 0; $i--) { > to this: > for ($i = 0; $i < count($aroPath); $i++) { > I don't know if this is a bug of my tree layout, or is it a bug of cakephp 1.2 > > Any ideas ? :) > > On 8/26/07, Aurelijus Valeia <[EMAIL PROTECTED]> wrote: > > > > > 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 Valeiawww.Aurelijus.euwww.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 -~----------~----~----~----~------~----~------~--~---
