ivanamat / cakephp3-aclmanager

CakePHP 3.x - Acl Manager
MIT License
27 stars 27 forks source link

AclNode::node() - Couldn't find Aros node identified by "Array ( [Aros0.model] => Users [Aros0.foreign_key] => 1 ) " #20

Closed inimist closed 6 years ago

inimist commented 6 years ago

I installed aclmanager using composer. Then I ran bin/cake acl_extras aro_sync. It updated acos table. Now when i access AclManager in browser address bar it shows :

AclNode::node() - Couldn't find Aros node identified by "Array ( [Aros0.model] => Users [Aros0.foreign_key] => 1 ) "

I understand that we need to populate aro and aros_acos tables somehow but I am not sure how? If you could add a clear guide to make this plugin work it could save lot of time of developers. A nice plugin but with lack of proper install guide.

raul338 commented 6 years ago

AFAIK At the moment there is no way to populate aros table from existing records. You have to start with an empty table....

ivanamat commented 6 years ago

Hi @inimist,

@raul338 is right, instead of obtaining the id of the first user for cases in which users already exist, at the moment all permissions are established to the user with id = 1.

Shortly I will do an update and I will get the first user id or I will put an option to select the user to whom you want to grant all the permissions.

Regards!

yarkm13 commented 6 years ago

29