feat: check permission when update user (#1438)

* feat: check permission when update user

* feat: check permission when update user

* fix: fix organization accountItem modifyRule

* fix: fix organization accountItem modifyRule
This commit is contained in:
imp2002
2023-01-02 09:27:25 +08:00
committed by GitHub
parent 308f305c53
commit 186f0ac97b
3 changed files with 121 additions and 3 deletions

View File

@ -170,7 +170,7 @@ class AccountTable extends React.Component {
}
let options;
if (record.viewRule === "Admin") {
if (record.viewRule === "Admin" || record.name === "Is admin" || record.name === "Is global admin") {
options = [
{id: "Admin", name: "Admin"},
{id: "Immutable", name: "Immutable"},