diff options
| author | Tom Christie | 2012-09-06 13:49:15 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-09-06 13:49:15 +0100 |
| commit | 1c78bf53dbc4f75cfdc240c72f4db9d2376cb9cb (patch) | |
| tree | a481ddfe54444e8187de741db792fdbcb00ad712 /djangorestframework/permissions.py | |
| parent | d52b4c5c6109c2d52125cb3dde16f9ce4004a98d (diff) | |
| download | django-rest-framework-1c78bf53dbc4f75cfdc240c72f4db9d2376cb9cb.tar.bz2 | |
Refactoring some basics
Diffstat (limited to 'djangorestframework/permissions.py')
| -rw-r--r-- | djangorestframework/permissions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py index eff2ed2b..64e455f5 100644 --- a/djangorestframework/permissions.py +++ b/djangorestframework/permissions.py @@ -52,7 +52,7 @@ class IsAdminUser(BasePermission): """ def check_permission(self, request, obj=None): - if request.user and request.user.is_staff(): + if request.user and request.user.is_staff: return True return False @@ -82,7 +82,7 @@ class DjangoModelPermissions(BasePermission): """ # Map methods into required permission codes. - # Override this if you need to also provide 'read' permissions, + # Override this if you need to also provide 'view' permissions, # or if you want to provide custom permission codes. perms_map = { 'GET': [], |
