mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +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
|
||||
request.user.is_authenticated() and
|
||||
request.user.has_perms(perms, obj)):
|
||||
request.user.has_perm(perms, obj)):
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue
Block a user