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' ],