From 2e362327b630ce2ce93751ecb020e787fbae7b0a Mon Sep 17 00:00:00 2001 From: Alejandro Tapia <67175024+atapia27@users.noreply.github.com> Date: Tue, 3 Mar 2026 16:04:51 -0800 Subject: [PATCH] Update litellm/proxy/management_endpoints/internal_user_endpoints.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/proxy/management_endpoints/internal_user_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/management_endpoints/internal_user_endpoints.py b/litellm/proxy/management_endpoints/internal_user_endpoints.py index f5488ce865..d88d281019 100644 --- a/litellm/proxy/management_endpoints/internal_user_endpoints.py +++ b/litellm/proxy/management_endpoints/internal_user_endpoints.py @@ -1858,7 +1858,7 @@ async def ui_view_users( try: # Restrict by caller role: proxy admin sees all; org admin sees only their org(s); others 403 - is_proxy_admin = user_api_key_dict.user_role == LitellmUserRoles.PROXY_ADMIN + is_proxy_admin = _user_has_admin_view(user_api_key_dict) if not is_proxy_admin: if user_api_key_dict.user_id is None: raise HTTPException(