1) Ticket was posted earlier in this thread:
https://trac.cakephp.org/ticket/4450
2) Somebody generously wrote a test and attached it to above ticket.
3) I wouldn't consider this an official fix, it's more of a workaround
hack.
If ACOs are supposed to inherit permissions as well, the check loop
would need to be revised IMHO.
On 10 Apr 2008, at 04:06, Chris Hartjes wrote:
>
> On Wed, Apr 9, 2008 at 2:34 AM, David Christopher Zentgraf
> <[EMAIL PROTECTED]> wrote:
>>
>> Ignore my previous fix, only works under certain conditions.
>> This fix is more robust:
>>
>> Insert:
>> // ======= WORKAROUND =========
>> $perms = Set::sort($perms, '{n}.Aco.id', 'desc');
>> // =============================
>>
>> before:
>> $perms = Set::extract($perms, '{n}.' . $this->Aro->Permission-
>> >alias);
>>
>
> 1) please file a ticket with trac about this
> 2) post proof that your fix will work by writing a test for it
>
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard: http://www.littlehart.net/atthekeyboard
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---