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

This commit is contained in:
Lunny Xiao authored and GitHub committed 2021-11-25 20:56:16 -05:00
1 parent f23851f690
commit 371ebce252
6 files changed
+62 -15

No files matched your search

+1 -1
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
}