mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-21 06:27:00 +00:00
Update litellm/proxy/management_endpoints/internal_user_endpoints.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
parent
f1c563d2b2
commit
2e362327b6
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user