litellm/ui
Cursor Agent f225c26de3
fix(ui): stub useIsOrgAdmin in 3 role-gate integration tests
f306927853 moved useIsOrgAdmin into useCan, so useCan now reaches
useOrganizations (react-query) and fires a real fetch to /organization/list.
The Workflows / Memory / Guardrails Monitor role-gate tests spy on global
fetch and assert nothing was called for a non-admin, so that leg pushes each
of them to 12 failed cases across the suite.

Apply the same stub PR #36565 landed on UsageTab: force the org-admin leg to
false so role gating still flows through hasCapability with the varied
userRole, and the fetch-not-called invariant these tests are asserting
holds again.

Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
2026-08-11 21:08:19 +00:00
..
litellm-dashboard fix(ui): stub useIsOrgAdmin in 3 role-gate integration tests 2026-08-11 21:08:19 +00:00
Dockerfile chore(build): move the Admin UI toolchain to Node 24 (#35801) 2026-08-04 12:36:07 -07:00
nginx.conf fix(ui): serve /ui/assets from the nginx image instead of SPA fallback (#34066) 2026-07-21 09:22:02 -07:00