@burtson-labs/bandit-engine 2.0.116 → 2.0.118

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.
@@ -9747,7 +9747,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
9747
9747
 
9748
9748
  // src/management/management.tsx
9749
9749
  import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
9750
- var preloadChatPage = () => import("./chat-J2WTUEBN.mjs");
9750
+ var preloadChatPage = () => import("./chat-RGXA26FO.mjs");
9751
9751
  var buildCapabilitiesUrl = (gatewayApiUrl) => {
9752
9752
  const trimmed = gatewayApiUrl.replace(/\/$/, "");
9753
9753
  if (trimmed.endsWith("/api")) {
@@ -10588,13 +10588,12 @@ var Management = () => {
10588
10588
  ];
10589
10589
  const platformAdminRoles = /* @__PURE__ */ new Set([
10590
10590
  "admin",
10591
- "super-user",
10592
- "superuser",
10593
- "platform_admin",
10594
- "super_admin"
10591
+ "platform_admin"
10595
10592
  ]);
10596
10593
  const userRoles = (authenticationService.parseJwtClaims(authenticationService.getToken() ?? "")?.roles ?? []).map((r) => r.toLowerCase());
10597
- const isWorkspaceAdmin = userRoles.some((r) => platformAdminRoles.has(r));
10594
+ const isWorkspaceAdmin = userRoles.some(
10595
+ (r) => platformAdminRoles.has(r) || r.endsWith("-admin")
10596
+ );
10598
10597
  const navTabs = allNavTabs.filter((tab) => {
10599
10598
  if (tab.requiresAdmin && !isWorkspaceAdmin) return false;
10600
10599
  if (tab.requiresFeature === "limitedAdminDashboard") {
@@ -11093,4 +11092,4 @@ export {
11093
11092
  useGatewayMemory,
11094
11093
  management_default
11095
11094
  };
11096
- //# sourceMappingURL=chunk-NO5FRJUX.mjs.map
11095
+ //# sourceMappingURL=chunk-YLETAU5Y.mjs.map