diff options
| author | Tom Christie | 2013-02-10 16:43:52 +0000 | 
|---|---|---|
| committer | Tom Christie | 2013-02-10 16:43:52 +0000 | 
| commit | 69dcf13da90e4a2c78ea4136426fa98d24a83813 (patch) | |
| tree | 82fdd7be49db04b7f7c249629364aee06931a502 /rest_framework | |
| parent | 4c8bd40465a79679b0db26277b59448db63d09d0 (diff) | |
| download | django-rest-framework-69dcf13da90e4a2c78ea4136426fa98d24a83813.tar.bz2 | |
Bugfix for DjangoModelPermissions.  Fixes #437
Turns out that Django's default permissions backend always returns
False when checking object-level permissions, even if the user does
have valid global permissions.
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/permissions.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/permissions.py b/rest_framework/permissions.py index 3222dbf2..c9bbf4c4 100644 --- a/rest_framework/permissions.py +++ b/rest_framework/permissions.py @@ -109,6 +109,6 @@ class DjangoModelPermissions(BasePermission):          if (request.user and              request.user.is_authenticated() and -            request.user.has_perms(perms, obj)): +            request.user.has_perms(perms)):              return True          return False  | 
