diff --git a/spejstore/settings.py b/spejstore/settings.py index 784ecdc..2386909 100644 --- a/spejstore/settings.py +++ b/spejstore/settings.py @@ -171,7 +171,7 @@ REST_FRAMEWORK = { # Use Django's standard `django.contrib.auth` permissions, # or allow read-only access for unauthenticated users. "DEFAULT_PERMISSION_CLASSES": [ - "rest_framework.permissions.IsAuthenticatedOrReadOnly", + "rest_framework.permissions.IsAuthenticated", ], "DEFAULT_AUTHENTICATION_CLASSES": [ "rest_framework.authentication.BasicAuthentication",