From b9fcea093cf7cd1cce30daa8fec56243760ac2ec Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 19 Jul 2011 14:33:02 -0700 Subject: [PATCH] Edited djangorestframework/permissions.py via GitHub --- djangorestframework/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py index 7dcabcf02..59c5f481f 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