Commit c5063728 by Mason Tang

Fix in permissions, user.is_staff is a field, not a function.

parent 05423824
...@@ -73,7 +73,7 @@ class IsAdminUser(BasePermission): ...@@ -73,7 +73,7 @@ class IsAdminUser(BasePermission):
""" """
def check_permission(self, user): def check_permission(self, user):
if not user.is_staff(): if not user.is_staff:
raise _403_FORBIDDEN_RESPONSE raise _403_FORBIDDEN_RESPONSE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment