Skip to content

Commit

Permalink
Fixed invalid permission paths for CurrentUserOrAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ou7law007 authored and tomwojcik committed Nov 5, 2023
1 parent 317c210 commit 641b824
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/source/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
}
Expand Down

0 comments on commit 641b824

Please sign in to comment.