Edited djangorestframework/permissions.py via GitHub

This commit is contained in:
Tom Christie 2011-07-19 14:33:02 -07:00
parent f29e2fc91f
commit b9fcea093c

View File

@ -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