Symfony 2 - Checking Action Permission with Roles and Groups

喜欢而已 提交于 2019-12-24 00:25:12

问题


I'm new into Symfony 2 and I read some docs about ACL and the ROLE System. I understood that I can use different Permissions on a Object with ACL.

But I need some different ( ? ) type of permission check, like in the static apache turbine roles / permission sets.

I want to use FOSUserBundle and using Groups. The Groups should have permissions like DOWNLOAD_PDF DOWNLOAD_PPT INVITE_USERS and so on..

Stuff that does not have something to do with Objects but I have to check in Controller ( static ) and assign to Groups in an Userinterface.

I don't really found something about how to check those Permissions and assign them e.g. to Groups.

Is there something already exist? Or a best practice? Or should I create for every Permission I need a ROLE?

来源:https://stackoverflow.com/questions/13842571/symfony-2-checking-action-permission-with-roles-and-groups

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!