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