mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 11:33:59 +03:00
Typo. Fixes #437.
This commit is contained in:
parent
7ade5add21
commit
412f737ab2
|
@ -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_perm(perms, obj)):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user