Rails Dynamic Role-Based Authorization plugin?

血红的双手。 提交于 2019-12-04 15:49:05

Please try plugin acl9 for role based application.

acl9

I would use declarative_authorization and simply create multiple roles for each function.

So have a specific role to edit,update,create,destroy a widget (4 different roles).

Then just associate the user with multiple roles, saves reimplementing the wheel.

Maybe try canard https://rubygems.org/gems/canard it uses all the dynamic authorisation of cancan and adds roles to it. I wrote it specifically to solve this problem.

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