Cakephp Acl错误

发布于 2024-11-10 08:17:15 字数 1044 浏览 2 评论 0原文

我尝试使用alaxos acl插件来研究Acl代码
我收到错误

Warning (512): AclNode::node() - Couldn't find Aro node identified by "Array
(
    [Aro0.model] => Group
    [Aro0.foreign_key] => admin
)
" [CORE\cake\libs\model\db_acl.php, line 191]
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.  Node         references:
Aro: Array
(
   [User] => Array
    (
        [id] => 76
        [username] => tttttt
        [group_id] => admin
        [active] => 1
        [activation_code] => 
        [widget_count] => 
        [lastvisit] => 
    )

)

Aco: Users/add [CORE\cake\libs\controller\components\acl.php, line 273]
Warning (2): Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\cakephp\cake\libs\debugger.php:673) [CORE\cake\libs\

我的数据库图片
用户和组模型
感谢您的回答

I try to use alaxos acl plugin for study of Acl code
and I got error

Warning (512): AclNode::node() - Couldn't find Aro node identified by "Array
(
    [Aro0.model] => Group
    [Aro0.foreign_key] => admin
)
" [CORE\cake\libs\model\db_acl.php, line 191]
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.  Node         references:
Aro: Array
(
   [User] => Array
    (
        [id] => 76
        [username] => tttttt
        [group_id] => admin
        [active] => 1
        [activation_code] => 
        [widget_count] => 
        [lastvisit] => 
    )

)

Aco: Users/add [CORE\cake\libs\controller\components\acl.php, line 273]
Warning (2): Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\cakephp\cake\libs\debugger.php:673) [CORE\cake\libs\

My Db picture here
User and Group Model
thank for answer

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里南柯 2024-11-17 08:17:15

您应该在数据库中设置基本需求数据
acl 组件正常工作很重要

You should to set basic require data in database
it important for acl component to work right

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文