Is there an authorization gem/plugin that tells why exactly authorization failed?


I’m currently using cancan, but we got a problem with it. In my app
got roles and they can also be banned by other users. The problem with
cancan is that I don’t know if authorization failed because user has not
enough privileges to perform an action, or it’s because he was banned by
other user. In both cases I’d like to provide a different response…

Is it possible to achieve something like this with cancan (using
abilities maybe) or are there any other simple authorization libraries
provide such info?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs