CakePHP的2.1身份验证:AclExtras不填充ACOS表 [英] CakePHP 2.1 Authentication: AclExtras does not populate acos table

查看:298
本文介绍了CakePHP的2.1身份验证:AclExtras不填充ACOS表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照这个教程建立一个ACL / ACO控制的应用程序:
<一href=\"http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html\" rel=\"nofollow\">http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html

I have followed this tutorial to build an ACL/ACO controlled app: http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html

我已经下载了AclExtras插件,把它放到我的应用程序/ Plugins文件夹,并执行命令 ./控制台/蛋糕AclExtras.AclExtras aco_update ,如描述教程,这使我的阿索更新完成的。但是,当我看着我的表ACOS,它做的唯一事情是添加以下行,没有别的:

I have downloaded the AclExtras plugin, put it into my app/Plugins folder, and executed the command ./Console/cake AclExtras.AclExtras aco_update, as described in the tutorial, which gives me Aco Update Complete. But when I look into my acos table, the only thing it has done is add the following row, nothing else:

(CSV)
id;parent_id;model;foreign_key;alias;lft;rght
5;1;NULL;NULL;AclExtras;2;3

控制器的根一行已经存在。我有九种型号,每个几个动作,但AclExtras不添加。
当我尝试登录,我送回到登录表单,虽然我的组具有完全访问控制器根。我认为这是因为ACOS的所有其余失踪。

The controllers root row is already there. I've got nine Models with several actions each, but AclExtras does not add them. When I try to log in, I'm sent back to the login form, though my group has full access to the controllers root. I think it's because all the rest of the acos are missing.

在此先感谢!

推荐答案

aco_sycn 同步基于控制器(至少与教程)的助理文书主任。每种方法是ACO,所以如果你没有任何控制器或控制器方法则什么也不会同步。

aco_sycn syncs the ACOs based on the controllers (at least with that tutorial). Each method is an ACO, so if you don't have any controllers or controller methods then nothing will be synced.

这篇关于CakePHP的2.1身份验证:AclExtras不填充ACOS表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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