Zend Framework ACL 角色和模块
我试图使用 ACL 来区分管理模块中的索引控制器和索引操作以及默认模块中的索引控制器和索引操作,我简直要发疯了。
我希望登录的用户能够访问默认模块的索引控制器,但根本不能访问管理模块。无论我尝试什么,如果我允许访问默认模块的索引,则管理模块索引也可用。
任何建议将不胜感激。谢谢
I am going insane trying to distinguish between the Index controller and Index action in my Admin Module and the Index controller and Index action in my Default module using ACL.
I want logged in users to be able to have access to the Default Module's index controller but not the admin module at all. No matter what I try, if I allow access to the default module's index, the admin modules index is available as well.
Any suggestions would be greatly appreciated. Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将您的资源定义为
module-controller
并将权限定义为action
然后您可以拥有类似的内容[编辑] 在您的控制器插件 predispatch 中
Define your resources as
module-controller
and privileges asaction
then you can have something like this[EDIT] And in your controller plugin predispatch