Hi iciclebox,

/This is only for discussion, as if there is no ticket theres no
officially reported problem./

I took a browse, in
https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/controller/components/dbacl/models/aclnode.php


line 70
Maybe this _sync table should be against $parent['rght'] and
$parent['rght'] -1 to push everything AFTER the parent to be
incremented by 2, rather than everything after or under the current
parent to be incremented by two.

lines 75 &76
Likewise should perhaps be setting the child to $parent['rght'] -2 and
$parent['rght'] -1 to tack the child onto the end rather than pushing
everything down the chain.

The same would be true for the set parent method. Is this what you are
referring to? If so, and I´m no MPTT expert, I think that a ticket is
in order ;).

Cheers,

AD7six
PS I guess you know that adding/deleteing in MPTT tables can be slow,
and if you had 100K users it would make much more sense to have aros
for user groups/roles rather than users - but that depends on the level
of granuliarity required for your acl.


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

Reply via email to