Szymon Nowak
2011-Mar-17 15:51 UTC
Is there an authorization gem/plugin that tells why exactly authorization failed?
Hey, I''m currently using cancan, but we got a problem with it. In my app users 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 multiple abilities maybe) or are there any other simple authorization libraries that provide such info? Cheers, Szymon -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.