You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The deny effect should deny access to a method if at least one of the deny conditions returns True. However, in my case, the deny effect seems to trigger and deny access regardless of whether the conditions evaluate to True or False.
The API returns a 403 Forbidden response regardless of whether profile_id.is_superuser is True or False.
Expected Result:
200 OK if is_superuser is False.
403 Forbidden if is_superuser is True.
Additional Information:
While troubleshooting this issue, I referred to the example provided in the documentation:
View Set Usage Example
However, the example also always returns a 403 error, similar to the issue I'm facing.
I really appreciate your library; it has greatly helped in organizing access controls in our project. I hope you can return to developing and maintaining this fantastic tool!
The text was updated successfully, but these errors were encountered:
Description:
I encountered a bug where the
deny
effect always returnsTrue
regardless of the conditions and their evaluations.According to the documentation:
The
deny
effect should deny access to a method if at least one of thedeny
conditions returnsTrue
. However, in my case, thedeny
effect seems to trigger and deny access regardless of whether the conditions evaluate toTrue
orFalse
.Reproduction:
Dependencies:
rest-framework-integration = ["djangorestframework (>=3.9,<4.0)"]
django = ">=2.2"
Here is a code snippet to reproduce the issue:
Actual Result:
The API returns a 403 Forbidden response regardless of whether profile_id.is_superuser is True or False.
Expected Result:
200 OK if is_superuser is False.
403 Forbidden if is_superuser is True.
Additional Information:
While troubleshooting this issue, I referred to the example provided in the documentation:
View Set Usage Example
However, the example also always returns a 403 error, similar to the issue I'm facing.
I really appreciate your library; it has greatly helped in organizing access controls in our project. I hope you can return to developing and maintaining this fantastic tool!
The text was updated successfully, but these errors were encountered: