feat: fix translate bug in UpdateUser() (#1451)

* fix: fix translate error

* fix translate bug in UpdateUser()

* Delete DiscordLoginButton.js
This commit is contained in:
Mr Forest
2023-01-04 22:54:50 +08:00
committed by GitHub
parent 0559298d6c
commit c8846f1a2d
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ func (c *ApiController) UpdateUser() {
isGlobalAdmin := c.IsGlobalAdmin()
if pass, err := checkPermissionForUpdateUser(id, user, c); !pass {
c.ResponseError(c.T(err))
c.ResponseError(err)
return
}