mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Merge pull request #68 from masont/master
Changed user.is_staff() to user.is_staff
This commit is contained in:
commit
b71a24437a
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user