Answer the question
In order to leave comments, you need to log in
Can't connect acl to cakephp3, what's wrong?
In cakephp3 acl is connected as a plugin, but unfortunately this event is not documented. I decided to try using guides for cakephp2, installed the plugin, connected it as a component, generated an aco tree through the console.
I have the division of rights only by groups, according to the guide, I need to add to the model:
public function bindNode($user)
{
return [
'model' => 'Group',
'foreign_key' => $user['User']['group_id']
];
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question