Fix in permissions, user.is_staff is a field, not a function.

This commit is contained in:
Mason Tang 2011-08-24 07:49:16 -03:00
parent 0542382489
commit c50637287b

View File

@ -73,7 +73,7 @@ class IsAdminUser(BasePermission):
""" """
def check_permission(self, user): def check_permission(self, user):
if not user.is_staff(): if not user.is_staff:
raise _403_FORBIDDEN_RESPONSE raise _403_FORBIDDEN_RESPONSE