From d7ddd9ed4b1d467f42cb85ce7210ed56e9c53628 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 4417ca4..e3f27f5 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' ],