From c50637287b18ca00a54c6158f3edbb0136c71b16 Mon Sep 17 00:00:00 2001 From: Mason Tang Date: Wed, 24 Aug 2011 07:49:16 -0300 Subject: [PATCH] Fix in permissions, user.is_staff is a field, not a function. --- djangorestframework/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py index 59c5f481f..0052a6094 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_staff(): + if not user.is_staff: raise _403_FORBIDDEN_RESPONSE