mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +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):
|
||||
for permission in self.permissions:
|
||||
if not permissions.has_permission(request, view):
|
||||
if not permission.has_permission(request, view):
|
||||
return False
|
||||
return True
|
||||
|
||||
def has_object_permission(self, request, view, obj):
|
||||
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 True
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user