Commit 69dcf13d by Tom Christie

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.
parent 4c8bd404
...@@ -109,6 +109,6 @@ class DjangoModelPermissions(BasePermission): ...@@ -109,6 +109,6 @@ class DjangoModelPermissions(BasePermission):
if (request.user and if (request.user and
request.user.is_authenticated() and request.user.is_authenticated() and
request.user.has_perms(perms, obj)): request.user.has_perms(perms)):
return True return True
return False return False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment