Don't check username in UpdateUser() API

This commit is contained in:
Gucheng Wang
2022-10-19 22:50:19 +08:00
parent 8b222ce2e3
commit fad209a7a3

View File

@ -158,12 +158,6 @@ func (c *ApiController) UpdateUser() {
columns = strings.Split(columnsStr, ",")
}
msg := object.CheckUsername(user.Name)
if msg != "" {
c.ResponseError(msg)
return
}
isGlobalAdmin := c.IsGlobalAdmin()
affected := object.UpdateUser(id, &user, columns, isGlobalAdmin)
if affected {