ryanb / cancan

Authorization Gem for Ruby on Rails.
MIT License
6.27k stars 783 forks source link

CanCan is not allowing to initialize 2 users to have access to resources. Only one works at a time #1040

Open ashu65 opened 8 years ago

ashu65 commented 8 years ago

In my code, if have 2 kinds of users, expert and client. If I initialize client, the resources allowed for expert are not accessible, and if I do not initialize client, then the resources for expert are accessible but not accessible for the client. How do I deal with this issue?

davidakachaos commented 8 years ago

I think you are better off using cancancan instead of cancan. Cancan isn't actively being maintained, and cancancan is. Cancancan is a drop-in replacement of cancan. Try it out :smile: