阅读背景:

控制器使用Symfony 2 ACL进行视图访问

来源:互联网 

I need a way to implement with Symfony 2.1 a list of permissions (the built-in permission map should be fine) that should act as global permissions. What I have to do is limit what views a group or users can see. For example, I have two controllers (controllerA and controllerB) and two users (userA and userB). The first user should be able to see the view managed by controllerA but he shouldn't be able to view controllerB's view. Instead, userB should be able to see both controllers. I found in the book/cookbook of Symfony the tutorial about the ACL but it seems to only talk about permissions applied to entities, instead controllers aren't entities. Any suggestion?I need a way to implement with Symfony 2.1 a li




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: