aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2011-07-19 14:33:02 -0700
committerTom Christie2011-07-19 14:33:02 -0700
commitb9fcea093cf7cd1cce30daa8fec56243760ac2ec (patch)
tree96c181d5ac0caffd2a242bc81ad91ef7933fbae8
parentf29e2fc91f2b8353bc51c791e76fbd3dbe2a5eea (diff)
downloaddjango-rest-framework-b9fcea093cf7cd1cce30daa8fec56243760ac2ec.tar.bz2
Edited djangorestframework/permissions.py via GitHub
-rw-r--r--djangorestframework/permissions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py
index 7dcabcf0..59c5f481 100644
--- a/djangorestframework/permissions.py
+++ b/djangorestframework/permissions.py
@@ -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