mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
Fix NameError
This commit is contained in:
parent
db16bb3799
commit
88b6200b4b
|
@ -74,13 +74,13 @@ class AND(BasePermission):
|
||||||
|
|
||||||
def has_permission(self, request, view):
|
def has_permission(self, request, view):
|
||||||
for permission in self.permissions:
|
for permission in self.permissions:
|
||||||
if not permissions.has_permission(request, view):
|
if not permission.has_permission(request, view):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def has_object_permission(self, request, view, obj):
|
def has_object_permission(self, request, view, obj):
|
||||||
for permission in self.permissions:
|
for permission in self.permissions:
|
||||||
if not permissions.has_object_permission(request, view, obj):
|
if not permission.has_object_permission(request, view, obj):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user