mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
Add User.isGlobalAdmin
This commit is contained in:
@ -59,7 +59,7 @@ export function showMessage(type, text) {
|
||||
}
|
||||
|
||||
export function isAdminUser(account) {
|
||||
return account.owner === "built-in";
|
||||
return account.owner === "built-in" || account.isGlobalAdmin === true;
|
||||
}
|
||||
|
||||
export function deepCopy(obj) {
|
||||
|
Reference in New Issue
Block a user