From 88b6200b4b78a24368f971ef9c57d82eb54ad7f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Pierobon?= Date: Fri, 21 Jun 2019 12:19:06 -0300 Subject: [PATCH] Fix NameError --- rest_framework/permissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest_framework/permissions.py b/rest_framework/permissions.py index a5dfe4a2e..66013009f 100644 --- a/rest_framework/permissions.py +++ b/rest_framework/permissions.py @@ -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