Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -47,6 +47,12 @@ function actionMatchesScope(action: ScopedCommandAction, { layout, tenantSlug, a
|
||||
}
|
||||
return getUserHasPermission(appData, scope.permission as DefaultPermission);
|
||||
}
|
||||
if (scope.anyPermissions) {
|
||||
if (!appData || !Array.isArray(appData.permissions)) {
|
||||
return false;
|
||||
}
|
||||
return scope.anyPermissions.some((permission) => getUserHasPermission(appData, permission as DefaultPermission));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user