mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 22:20:01 +08:00
Disable built-in/admin's unexpected change
This commit is contained in:
@ -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"}} >
|
||||
|
Reference in New Issue
Block a user