mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
useCan called useIsOrgAdmin unconditionally, which fires /organization/list via useOrganizations. That broke UsageTab and CostOptimizationView tests (they render without a QueryClientProvider, so the useQuery inside useIsOrgAdmin threw "No QueryClient set") and also broke Workflows / Memory / Guardrails Monitor integration tests that assert no fetch fires for a non-admin role. Only viewDeletedTeams reads the org-admin flag (ORG_ADMIN_CAPABILITIES), so drop the useIsOrgAdmin call from useCan and OR the org-admin membership check in at the single caller in view_logs. The org-admin membership fallback for viewDeletedTeams is preserved. Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||