@burtson-labs/bandit-engine 2.0.114 → 2.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-H3BUUAHU.mjs → chunk-NO5FRJUX.mjs} +4 -5
- package/dist/chunk-NO5FRJUX.mjs.map +1 -0
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/management/management.js +3 -4
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-H3BUUAHU.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -44929,16 +44929,15 @@ var Management = () => {
|
|
|
44929
44929
|
requiresAdmin: true
|
|
44930
44930
|
}
|
|
44931
44931
|
];
|
|
44932
|
-
const
|
|
44932
|
+
const platformAdminRoles = /* @__PURE__ */ new Set([
|
|
44933
44933
|
"admin",
|
|
44934
44934
|
"super-user",
|
|
44935
44935
|
"superuser",
|
|
44936
|
-
"super_admin",
|
|
44937
44936
|
"platform_admin",
|
|
44938
|
-
"
|
|
44937
|
+
"super_admin"
|
|
44939
44938
|
]);
|
|
44940
44939
|
const userRoles = (authenticationService.parseJwtClaims(authenticationService.getToken() ?? "")?.roles ?? []).map((r) => r.toLowerCase());
|
|
44941
|
-
const isWorkspaceAdmin = userRoles.some((r) =>
|
|
44940
|
+
const isWorkspaceAdmin = userRoles.some((r) => platformAdminRoles.has(r));
|
|
44942
44941
|
const navTabs = allNavTabs.filter((tab) => {
|
|
44943
44942
|
if (tab.requiresAdmin && !isWorkspaceAdmin) return false;
|
|
44944
44943
|
if (tab.requiresFeature === "limitedAdminDashboard") {
|