Skip to content

Commit

Permalink
fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
nannan00 committed Jan 19, 2024
1 parent bcd89f7 commit a603648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bk-user/bkuser/apis/open_v2/views/profilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def put(self, request, *args, **kwargs):
slz = ProfileLanguageUpdateInputSLZ(data=request.data)
slz.is_valid(raise_exception=True)

# TODO (su) 支持软删除后,需要根据 include_disabled 参数判断是返回被删除的用户还是 Raise 404
# TODO (su) 支持软删除后,这里要添加过滤条件,只支持正常用户的更新,非正常状态用户无法更新,直接 Http404
tenant_user = TenantUser.objects.filter(id=kwargs["username"]).first()
if not tenant_user:
raise Http404(f"user username:{kwargs['username']} not found")
Expand Down

0 comments on commit a603648

Please sign in to comment.