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

查看:17
本文介绍了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.

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天全站免登陆