Add GetPermissionsBySubmitter()

This commit is contained in:
Gucheng Wang
2022-08-15 14:09:12 +08:00
parent dfbf7753c3
commit c92d34e27c
15 changed files with 207 additions and 18 deletions

View File

@ -373,6 +373,13 @@ export function isAdminUser(account) {
return account.owner === "built-in" || account.isGlobalAdmin === true;
}
export function isLocalAdminUser(account) {
if (account === undefined || account === null) {
return false;
}
return account.isAdmin === true || isAdminUser(account);
}
export function deepCopy(obj) {
return Object.assign({}, obj);
}