@burtson-labs/bandit-engine 2.0.114 → 2.0.115

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/index.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  useGatewayHealth,
11
11
  useGatewayMemory,
12
12
  useGatewayModels
13
- } from "./chunk-H3BUUAHU.mjs";
13
+ } from "./chunk-NZKNHFE4.mjs";
14
14
  import "./chunk-W2EPDR5G.mjs";
15
15
  import "./chunk-HAUDGBUS.mjs";
16
16
  import "./chunk-BN3D45E2.mjs";
@@ -44269,16 +44269,13 @@ var Management = () => {
44269
44269
  requiresAdmin: true
44270
44270
  }
44271
44271
  ];
44272
- const adminRoleNames = /* @__PURE__ */ new Set([
44272
+ const platformAdminRoles = /* @__PURE__ */ new Set([
44273
44273
  "admin",
44274
- "super-user",
44275
- "superuser",
44276
- "super_admin",
44277
44274
  "platform_admin",
44278
- "tenant_admin"
44275
+ "super_admin"
44279
44276
  ]);
44280
44277
  const userRoles = (authenticationService.parseJwtClaims(authenticationService.getToken() ?? "")?.roles ?? []).map((r) => r.toLowerCase());
44281
- const isWorkspaceAdmin = userRoles.some((r) => adminRoleNames.has(r) || r.endsWith("-admin"));
44278
+ const isWorkspaceAdmin = userRoles.some((r) => platformAdminRoles.has(r));
44282
44279
  const navTabs = allNavTabs.filter((tab) => {
44283
44280
  if (tab.requiresAdmin && !isWorkspaceAdmin) return false;
44284
44281
  if (tab.requiresFeature === "limitedAdminDashboard") {