@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.js CHANGED
@@ -44929,16 +44929,13 @@ var Management = () => {
44929
44929
  requiresAdmin: true
44930
44930
  }
44931
44931
  ];
44932
- const adminRoleNames = /* @__PURE__ */ new Set([
44932
+ const platformAdminRoles = /* @__PURE__ */ new Set([
44933
44933
  "admin",
44934
- "super-user",
44935
- "superuser",
44936
- "super_admin",
44937
44934
  "platform_admin",
44938
- "tenant_admin"
44935
+ "super_admin"
44939
44936
  ]);
44940
44937
  const userRoles = (authenticationService.parseJwtClaims(authenticationService.getToken() ?? "")?.roles ?? []).map((r) => r.toLowerCase());
44941
- const isWorkspaceAdmin = userRoles.some((r) => adminRoleNames.has(r) || r.endsWith("-admin"));
44938
+ const isWorkspaceAdmin = userRoles.some((r) => platformAdminRoles.has(r));
44942
44939
  const navTabs = allNavTabs.filter((tab) => {
44943
44940
  if (tab.requiresAdmin && !isWorkspaceAdmin) return false;
44944
44941
  if (tab.requiresFeature === "limitedAdminDashboard") {