From ef71016dfe408af72b67d1b24d857ce556530211 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Fri, 10 Apr 2026 22:24:14 -0700 Subject: [PATCH] address greptile review feedback (greploop iteration 1) --- litellm/proxy/management_endpoints/organization_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/management_endpoints/organization_endpoints.py b/litellm/proxy/management_endpoints/organization_endpoints.py index c57a5d67970..874a974609d 100644 --- a/litellm/proxy/management_endpoints/organization_endpoints.py +++ b/litellm/proxy/management_endpoints/organization_endpoints.py @@ -56,7 +56,7 @@ async def _verify_org_access( Raises HTTPException(403) if the caller does not have access. """ - if user_api_key_dict.user_role == LitellmUserRoles.PROXY_ADMIN: + if _user_has_admin_view(user_api_key_dict): return if not user_api_key_dict.user_id: