Add User.isGlobalAdmin

This commit is contained in:
Yang Luo
2021-02-15 22:14:19 +08:00
parent d44a5ee2c1
commit 60ad52f7ae
6 changed files with 96 additions and 63 deletions

View File

@ -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) {