Disable built-in/admin's unexpected change

This commit is contained in:
Yang Luo
2023-05-04 22:07:19 +08:00
parent 05c063ac24
commit 55fd31f575
3 changed files with 22 additions and 1 deletions

View File

@ -180,6 +180,12 @@ class UserEditPage extends React.Component {
disabled = true;
}
if (accountItem.name === "Organization" || accountItem.name === "Name") {
if (this.state.user.owner === "built-in" && this.state.user.name === "admin") {
disabled = true;
}
}
if (accountItem.name === "Organization") {
return (
<Row style={{marginTop: "10px"}} >