* DISABLE_PERMISSIONS for list checklists
This commit is contained in:
parent
988e2c7ad4
commit
021d75587c
|
|
@ -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([])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user