1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Fix database inconsistent when admin change user email (#17549)

This commit is contained in:
Lunny Xiao
2021-11-26 09:56:16 +08:00
committed by GitHub
parent f23851f690
commit 371ebce252
6 changed files with 62 additions and 15 deletions

View File

@@ -74,7 +74,7 @@ func UpdateUserSettings(ctx *context.APIContext) {
ctx.User.KeepActivityPrivate = *form.HideActivity
}
if err := user_model.UpdateUser(ctx.User); err != nil {
if err := user_model.UpdateUser(ctx.User, false); err != nil {
ctx.InternalServerError(err)
return
}