mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 13:04:03 +03:00
Edited djangorestframework/permissions.py via GitHub
This commit is contained in:
parent
f29e2fc91f
commit
b9fcea093c
|
@ -73,7 +73,7 @@ class IsAdminUser(BasePermission):
|
|||
"""
|
||||
|
||||
def check_permission(self, user):
|
||||
if not user.is_admin():
|
||||
if not user.is_staff():
|
||||
raise _403_FORBIDDEN_RESPONSE
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user