diff --git a/controller/user.go b/controller/user.go index c82118a..002b0c4 100644 --- a/controller/user.go +++ b/controller/user.go @@ -562,7 +562,7 @@ func UpdateUser(c *gin.Context) { common.ApiError(c, err) return } - if originUser.IsSyncedUser() && originUser.Quota != updatedUser.Quota { + if originUser.IsSyncedUser() && originUser.SyncedQuota != updatedUser.Quota { common.ApiErrorI18n(c, i18n.MsgSyncedUserQuotaCannotModify) return }