Use bindNode in the user model to return it's group, there is information
about "group only acl" in the cake book.
I use roles instead of groups, so in my case it looks like:
function bindNode($user) {
return array('model' => 'Role', 'foreign_key' =>
$user['User']['role_id']);
}
El sábado 24 de marzo de 2012 12:34:02 UTC+1, baur79 escribió:
>
> Hi,
> i have the working ACL cakephp app (group based ACL)
> i have users in group and make them ACL group-based
>
> every time a register new user it creates new ARO for user
> how can disable to creation in "aro" table, cause it make the trash rows
> (60 000 user = 60 rows)
>
> user model
> public $actsAs = array('Acl' => array('type' => 'requester'));
>
> group model
> public $actsAs = array('Acl' => array('type' => 'requester'));
>
>
> thanks in advance
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php