ivanamat / cakephp3-aclmanager

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

Updating Aros #11

Closed ngeorge1 closed 7 years ago

ngeorge1 commented 7 years ago

There seems to be an issue with getting the parent id for the Aro in the new update. Worked good in the older version.

ivanamat commented 7 years ago

Hi @ngeorge1

Can you tell me what you have in AclManager.aros?

In the previous version it was always generated with Groups, Roles and Users, all them requireds, now load the AROs that you specify in the variable AclManager.aros with a foreach, I will review this foreach, that is the one that generates the ARO.

ngeorge1 commented 7 years ago

Hey,

This is what I have: Configure::write('AclManager.aros', array('Groups', 'Roles', 'Users'));

ivanamat commented 7 years ago

I use the same configuration. Do you have many groups, roles and users? I will create enough and try everything again.

ngeorge1 commented 7 years ago

Yes I have many groups (5), roles(5) and users (10).

ivanamat commented 7 years ago

Hi, @ngeorge1

Try latest version https://github.com/ivanamat/cakephp3-aclmanager/releases/tag/1.0.6

ngeorge1 commented 7 years ago

Hey @ivanamat ,

Great, the latest update fixed the issue. Thanks

ivanamat commented 7 years ago

Hi @ngeorge1

Thanks to you for report the error! ;)