Fix NameError

This commit is contained in:
Matías Pierobon 2019-06-21 12:19:06 -03:00 committed by GitHub
parent db16bb3799
commit 88b6200b4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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