Monday, June 24, 2013

Re: Issues upgrading component from 1.x to 2.x

On Mon, 24 Jun 2013 03:29:06 -0400, Michael Gaiser wrote:

> Don't get me wrong, I will have to do that too, but the unfortunate part is
> that if you have the aro added when you add a new user/group via
> parentNode() it doesn't update the alias which I want to use withing my
> check() function. I would like to build what I want to do on top of the
> existing acl base code but that means extending the class and overriding
> the necessary functions.

Why don't you update the alias in your User/Role|Group model instead? Or via behaviors?
Eg:

https://github.com/croogo/croogo/blob/master/Plugin/Acl/Model/Behavior/UserAroBehavior.php
https://github.com/croogo/croogo/blob/master/Plugin/Acl/Model/Behavior/RoleAroBehavior.php#L56

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: