mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-08 00:50:28 +08:00
Local admin can edit its org users now
This commit is contained in:
@ -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()) {
|
||||||
|
Reference in New Issue
Block a user