fix: 修改用户密码更新API取消Retrieve权限

pull/6579/head
Bai 2021-08-02 11:53:08 +08:00 committed by Jiangjie.Bai
parent f16a9ddb86
commit fe2d80046c
1 changed files with 1 additions and 1 deletions

View File

@ -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