From 641b824353627a73ba901f7e81b86246384d1327 Mon Sep 17 00:00:00 2001 From: Ou7law007 <64309267+Ou7law007@users.noreply.github.com> Date: Mon, 18 Sep 2023 20:37:24 +0200 Subject: [PATCH] Fixed invalid permission paths for CurrentUserOrAdmin --- docs/source/settings.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/source/settings.rst b/docs/source/settings.rst index 7de92078..d131ed23 100644 --- a/docs/source/settings.rst +++ b/docs/source/settings.rst @@ -333,14 +333,14 @@ Dictionary that maps permissions to certain views across Djoser. 'activation': ['rest_framework.permissions.AllowAny'], 'password_reset': ['rest_framework.permissions.AllowAny'], 'password_reset_confirm': ['rest_framework.permissions.AllowAny'], - 'set_password': ['rest_framework.permissions.CurrentUserOrAdmin'], + 'set_password': ['djoser.permissions.CurrentUserOrAdmin'], 'username_reset': ['rest_framework.permissions.AllowAny'], 'username_reset_confirm': ['rest_framework.permissions.AllowAny'], - 'set_username': ['rest_framework.permissions.CurrentUserOrAdmin'], + 'set_username': ['djoser.permissions.CurrentUserOrAdmin'], 'user_create': ['rest_framework.permissions.AllowAny'], - 'user_delete': ['rest_framework.permissions.CurrentUserOrAdmin'], - 'user': ['rest_framework.permissions.CurrentUserOrAdmin'], - 'user_list': ['rest_framework.permissions.CurrentUserOrAdmin'], + 'user_delete': ['djoser.permissions.CurrentUserOrAdmin'], + 'user': ['djoser.permissions.CurrentUserOrAdmin'], + 'user_list': ['djoser.permissions.CurrentUserOrAdmin'], 'token_create': ['rest_framework.permissions.AllowAny'], 'token_destroy': ['rest_framework.permissions.IsAuthenticated'], }