From 79045bf99de0d5b2dd53d70acc7630d1301502e9 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Tue, 27 Oct 2020 09:28:11 +0100 Subject: [PATCH] api: allow anonymous requests to address autocomplete endpoint (#48031) --- src/authentic2/api_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2/api_views.py b/src/authentic2/api_views.py index 6b48238bd..ef5bbc2da 100644 --- a/src/authentic2/api_views.py +++ b/src/authentic2/api_views.py @@ -1044,7 +1044,7 @@ validate_password = ValidatePasswordAPI.as_view() class AddressAutocompleteAPI(APIView): - permission_classes = (permissions.IsAuthenticated,) + permission_classes = (permissions.AllowAny,) def get(self, request): if not getattr(settings, 'ADDRESS_AUTOCOMPLETE_URL', None):