Commit b9fcea09 by Tom Christie

Edited djangorestframework/permissions.py via GitHub

parent f29e2fc9
...@@ -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_admin(): 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