DbAcl :: check() - 在权限检查中失败的ARO / ACO节点查找。 [英] DbAcl::check() - Failed ARO/ACO node lookup in permissions check.

查看:143
本文介绍了DbAcl :: check() - 在权限检查中失败的ARO / ACO节点查找。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用cakephp并使用acl。
但我面对这个错误。

i am using cakephp and use acl . but i face this error .

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

感谢您的帮助。

推荐答案

这可能是您已将操作添加到控制器中,但未更新 aco 表。您可以使用 cake shell从命令行更新您的acos。

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

为操作添加aco 查看 UsersController

cake acl create aco Users view

为新控制器添加aco PostsController

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

cake acl create aco controllers Posts

如果找到最有用的脚本来自动更新acos。您可以自行撰写,也可以试试像这个aco_sync shell

If 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

这篇关于DbAcl :: check() - 在权限检查中失败的ARO / ACO节点查找。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆