Re: repair ACL acos tree cakephp
Check /cake/libs/model/behaviors/tree.php for method recover(): /** * Recover a corrupted tree * * The mode parameter is used to specify the source of info that is valid/correct. The opposite source of data * will be populated based upon that source of info. E.g. if the MPTT fields are corrupt or empty, with the $mode * 'parent' the values of the parent_id field will be used to populate the left and right fields. The missingParentAction * parameter only applies to "parent" mode and determines what to do if the parent field contains an id that is not present. */ HTH --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: repair ACL acos tree cakephp
What type of acl authorization are you using? Crud/model/action? On 29 Sep, 14:51, Robson <[EMAIL PROTECTED]> wrote: > Few weeks ago we introduced application to our customer. > It all went just fine untill now . > System's rights are based on built-in CAKE-PHP ACL Behaviour. > Today i got a call from the customer that users keep reporting "not > having enough rights". > Acos table is massive (15k records) and grows, so analyzes aren't > easy. > Atm we introduced some kind of workaround and it works - partially > skipping acl part. > After some time i discovered that some record in DB have same lft and > rght values, so obviously tree structure is broken. > Does it mean that Tree or ACL behavior doesn't work correctly? > If we wont fix it, we will be forced to bypass usage of ACL in this > App (we loose time we spend on implementing ACL already) > > Can Acl system be used to repair a damaged tree (based on the > parent_id fields)? > If so, please post the algorithm we could use. > > CAKE v.1.2.0.7125 RC1 > MySQL client version: 5.0.27 > PHP: 5 > > Rob > > PS. Sorry for my english. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
repair ACL acos tree cakephp
Few weeks ago we introduced application to our customer. It all went just fine untill now . System's rights are based on built-in CAKE-PHP ACL Behaviour. Today i got a call from the customer that users keep reporting "not having enough rights". Acos table is massive (15k records) and grows, so analyzes aren't easy. Atm we introduced some kind of workaround and it works - partially skipping acl part. After some time i discovered that some record in DB have same lft and rght values, so obviously tree structure is broken. Does it mean that Tree or ACL behavior doesn't work correctly? If we wont fix it, we will be forced to bypass usage of ACL in this App (we loose time we spend on implementing ACL already) Can Acl system be used to repair a damaged tree (based on the parent_id fields)? If so, please post the algorithm we could use. CAKE v.1.2.0.7125 RC1 MySQL client version: 5.0.27 PHP: 5 Rob PS. Sorry for my english. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---