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