Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add can_impersonate? functionality #6

Open
wants to merge 3 commits into
from

Conversation

Projects
None yet
1 participant

Per the comment I just left in the Issues list, here is the functionality to add the can_impersonate? method option to the gem.

See the changes in the readme.md to see the specifics for usage, but its dead simple. I tried to mirror exactly what you were doing for the is_staff? method.

Makes the gem a lot more useful for complex authentication / role cases.

Let me know if you have any questions or want any changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment