From ff9472dee145e1819ab06252768e61e933de7d35 Mon Sep 17 00:00:00 2001 From: phzhik Date: Fri, 7 Jul 2023 02:09:24 +0400 Subject: [PATCH] * oupsie --- poizonstore/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poizonstore/settings.py b/poizonstore/settings.py index dc4647d..0cabcab 100644 --- a/poizonstore/settings.py +++ b/poizonstore/settings.py @@ -136,7 +136,7 @@ REST_FRAMEWORK = { # or allow read-only access for unauthenticated users. 'DEFAULT_PERMISSION_CLASSES': [ 'rest_framework.permissions.IsAuthenticated' - if DISABLE_PERMISSIONS + if not DISABLE_PERMISSIONS else 'rest_framework.permissions.AllowAny' ],