diff --git a/object/user.go b/object/user.go index 5efbd39a..1662d1bc 100644 --- a/object/user.go +++ b/object/user.go @@ -677,7 +677,7 @@ func UpdateUser(id string, user *User, columns []string, isAdmin bool) (bool, er } } if isAdmin { - columns = append(columns, "name", "email", "phone", "country_code", "type") + columns = append(columns, "name", "id", "email", "phone", "country_code", "type") } columns = append(columns, "updated_time") diff --git a/web/src/UserEditPage.js b/web/src/UserEditPage.js index d53cc7f3..851e4582 100644 --- a/web/src/UserEditPage.js +++ b/web/src/UserEditPage.js @@ -350,7 +350,9 @@ class UserEditPage extends React.Component { {Setting.getLabel("ID", i18next.t("general:ID - Tooltip"))} : - + { + this.updateUserField("id", e.target.value); + }} /> );