-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checker always returns True result #69
Comments
Hi @ishrivatsa, can you provide more context? What version of the lib are you using? Can you provide a sample of the code you are seeing this behavior (please provide the role class)? Which checker method are you using? |
The second time I run the has_permission, it should have returned false. I am running python 3.5 in a virtual env. Django 1.10.2 Thank you. |
Thanks! I need more information:
|
Hi,
from rolepermissions.roles import AbstractUserRole class Doctor(AbstractUserRole): class Nurse(AbstractUserRole):
Thank you. |
Hi @filipeximenes , |
@ishrivatsa I am facing the same issue. How to solve this ? |
Looked at the code, it always returns true if the user is an superuser/admin |
@vinyasmusic yes, that's right. It's actually a discussion we are having. Here is the link if you want to contribute: #61 (comment) |
Hi, The checkers method is returning permission result as available, when we assign a role and remove it.
The text was updated successfully, but these errors were encountered: