@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/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-NO5FRJUX.mjs";
14
14
  import "./chunk-W2EPDR5G.mjs";
15
15
  import "./chunk-HAUDGBUS.mjs";
16
16
  import "./chunk-BN3D45E2.mjs";
@@ -44269,16 +44269,15 @@ 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
44274
  "super-user",
44275
44275
  "superuser",
44276
- "super_admin",
44277
44276
  "platform_admin",
44278
- "tenant_admin"
44277
+ "super_admin"
44279
44278
  ]);
44280
44279
  const userRoles = (authenticationService.parseJwtClaims(authenticationService.getToken() ?? "")?.roles ?? []).map((r) => r.toLowerCase());
44281
- const isWorkspaceAdmin = userRoles.some((r) => adminRoleNames.has(r) || r.endsWith("-admin"));
44280
+ const isWorkspaceAdmin = userRoles.some((r) => platformAdminRoles.has(r));
44282
44281
  const navTabs = allNavTabs.filter((tab) => {
44283
44282
  if (tab.requiresAdmin && !isWorkspaceAdmin) return false;
44284
44283
  if (tab.requiresFeature === "limitedAdminDashboard") {