mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-22 18:25:47 +08:00
Local admin can edit its org users now
This commit is contained in:
parent
53243a30f3
commit
9ea77c63d1
@ -241,7 +241,7 @@ class UserEditPage extends React.Component {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const isAdmin = Setting.isAdminUser(this.props.account);
|
const isAdmin = Setting.isLocalAdminUser(this.props.account);
|
||||||
|
|
||||||
if (accountItem.viewRule === "Self") {
|
if (accountItem.viewRule === "Self") {
|
||||||
if (!this.isSelfOrAdmin()) {
|
if (!this.isSelfOrAdmin()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user