From 94eb55896d0994a02577b2475a60d9366b165e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sat, 16 Jan 2021 00:29:37 +0100 Subject: [PATCH] Fix default API permissions --- siteroot/settings/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/siteroot/settings/base.py b/siteroot/settings/base.py index 535c667..e59d42d 100644 --- a/siteroot/settings/base.py +++ b/siteroot/settings/base.py @@ -151,6 +151,9 @@ REST_FRAMEWORK = { 'rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication', ], + 'DEFAULT_PERMISSION_CLASSES': [ + 'rest_framework.permissions.IsAuthenticated' + ], 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'PAGE_SIZE': 100 }