nathanl / authority

*CURRENTLY UNMAINTAINED*. Authority helps you authorize actions in your Rails app. It's ORM-neutral and has very little fancy syntax; just group your models under one or more Authorizer classes and write plain Ruby methods on them.
MIT License
1.21k stars 67 forks source link

Authorization with Rails Admin Gem #121

Closed bhushangahire closed 7 years ago

bhushangahire commented 7 years ago

How I can integrate this with rails_admin gem ?

nathanl commented 7 years ago

I haven't tried it. Does https://github.com/sferik/rails_admin/wiki/Customized-authorization help you?

bhushangahire commented 7 years ago

I had to use role-based customization for each model. I moved to Cancancan.

nathanl commented 7 years ago

There's no reason you can't check roles in an Authority authorizer or in a Pundit policy, but perhaps rails_admin doesn't make it as easy to use them?