From fe2d80046c463e02e825d123a95a0ff21ef903ff Mon Sep 17 00:00:00 2001 From: Bai Date: Mon, 2 Aug 2021 11:53:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E6=9B=B4=E6=96=B0API=E5=8F=96=E6=B6=88Retrie?= =?UTF-8?q?ve=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/users/api/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/users/api/user.py b/apps/users/api/user.py index ebab1ec3c..4c0daa849 100644 --- a/apps/users/api/user.py +++ b/apps/users/api/user.py @@ -184,7 +184,7 @@ class UserViewSet(CommonApiMixin, UserQuerysetMixin, BulkModelViewSet): return Response(status=204) -class UserChangePasswordApi(UserQuerysetMixin, generics.RetrieveUpdateAPIView): +class UserChangePasswordApi(UserQuerysetMixin, generics.UpdateAPIView): permission_classes = (IsOrgAdmin,) serializer_class = serializers.ChangeUserPasswordSerializer