DbAcl :: check () - ARO / ACO node check failed in permission.

I use cakephp and use acl. but I am facing this error.

DbAcl::check() - Failed ARO/ACO node lookup in permissions check. 

thanks for the help.

+4
source share
2 answers

It is possible that you added actions to your controllers and did not update the aco table. You can update acos from the command line using the cake shell.

To add aco for the view action for UsersController

 cake acl create aco Users view 

To add aco to a new controller (e.g. PostsController )

 cake acl create aco controllers Posts 

If you find it most useful to have a script to automatically update acos. You can either write your own or try something like this aco_sync shell

+8
source

Or just run this command in the cake cake console AclExtras.AclExtras aco_sync it will update all the necessary acos for the new views or controllers that you just added Of course, you will need the AclExtras plugin.

+2
source

Source: https://habr.com/ru/post/1380163/


All Articles