From 021d75587c58c8f86ed7549555bd2917a177630d Mon Sep 17 00:00:00 2001 From: phzhik Date: Wed, 12 Jul 2023 20:53:42 +0400 Subject: [PATCH] * DISABLE_PERMISSIONS for list checklists --- store/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/views.py b/store/views.py index 45dc2f5..181a782 100644 --- a/store/views.py +++ b/store/views.py @@ -113,7 +113,7 @@ class ChecklistAPI(mixins.ListModelMixin, if 'id' in kwargs: return self.retrieve(request, *args, **kwargs) - if not request.user.is_authenticated: + if not request.user.is_authenticated and not settings.DISABLE_PERMISSIONS: # Anonymous users can't list checklists return Response([])