[英]CakePHP ACL and Auth not working
I have a few questions about CakePHPs ACL and Auth system. 我有几个关于CakePHPs ACL和Auth系统的问题。
Thank you. 谢谢。
UPDATE: My login works now (Problem with the time settings on the server) and my acos table looks right but I can't go to any action. 更新:我的登录现在工作(服务器上的时间设置问题)和我的acos表看起来正确,但我不能采取任何行动。 I allowed the action in the aros_acos table. 我允许在aros_acos表中执行操作。 If I check the permission with '$this->Acl->check()' it just works if I give the single name of the action and not the full path ('controllers/Posts/add' doesn't work). 如果我使用'$ this-> Acl-> check()'检查权限,如果我给出操作的单个名称而不是完整路径('controllers / Posts / add'不起作用),它就可以工作。
I solved the problems by: 我解决了以下问题:
To fill the ACO datatable easily, you could also use my plugin: http://www.alaxos.net/blaxos/pages/view/plugin_acl_2.0 要轻松填充ACO数据表,您还可以使用我的插件: http : //www.alaxos.net/blaxos/pages/view/plugin_acl_2.0
Then no need to bother how the records have to be created, it would do it for you ;-) 然后无需打扰如何创建记录,它会为你做;-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.