@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.
@@ -10586,16 +10586,15 @@ var Management = () => {
10586
10586
  requiresAdmin: true
10587
10587
  }
10588
10588
  ];
10589
- const adminRoleNames = /* @__PURE__ */ new Set([
10589
+ const platformAdminRoles = /* @__PURE__ */ new Set([
10590
10590
  "admin",
10591
10591
  "super-user",
10592
10592
  "superuser",
10593
- "super_admin",
10594
10593
  "platform_admin",
10595
- "tenant_admin"
10594
+ "super_admin"
10596
10595
  ]);
10597
10596
  const userRoles = (authenticationService.parseJwtClaims(authenticationService.getToken() ?? "")?.roles ?? []).map((r) => r.toLowerCase());
10598
- const isWorkspaceAdmin = userRoles.some((r) => adminRoleNames.has(r) || r.endsWith("-admin"));
10597
+ const isWorkspaceAdmin = userRoles.some((r) => platformAdminRoles.has(r));
10599
10598
  const navTabs = allNavTabs.filter((tab) => {
10600
10599
  if (tab.requiresAdmin && !isWorkspaceAdmin) return false;
10601
10600
  if (tab.requiresFeature === "limitedAdminDashboard") {
@@ -11094,4 +11093,4 @@ export {
11094
11093
  useGatewayMemory,
11095
11094
  management_default
11096
11095
  };
11097
- //# sourceMappingURL=chunk-H3BUUAHU.mjs.map
11096
+ //# sourceMappingURL=chunk-NO5FRJUX.mjs.map