Thursday, September 25, 2008

How prevent automatic insert User in Aros and Acos table?

Hi,

I'm using ACL by groups, with "User belongsTo Group" and bindNode()
method in my User model.
So I don't want to insert new aro when I create a user because the
group permission is sufficient.
Is it possible to disconnect AclBehavior when I add a user?

In fact my User model is both "controlled" and "requester". To do that
I've created an "Acl2Behavior" that just extends the AclBehavior. And
in my model I write this: $actsAs =
array('Acl'=>'controlled','Acl2'=>'requester');

So I've the same problem with Aco's table: an insert in User create an
automatic insert in acos table... How to prevent that?

Any idea is welcome!

BR
--~--~---------~--~----~------------~-------~--~----~
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 cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: