forked from phoenix/litellm-mirror
Revert "fix(ui_sso.py): fix faulty admin check"
This reverts commit 22d95c99b5
.
This commit is contained in:
parent
22d95c99b5
commit
5e381caf75
2 changed files with 6 additions and 3 deletions
|
@ -5,5 +5,8 @@ model_list:
|
||||||
api_key: os.environ/OPENAI_API_KEY
|
api_key: os.environ/OPENAI_API_KEY
|
||||||
|
|
||||||
|
|
||||||
general_settings:
|
assistant_settings:
|
||||||
ui_access_mode: admin_only
|
custom_llm_provider: azure
|
||||||
|
litellm_params:
|
||||||
|
api_key: os.environ/AZURE_API_KEY
|
||||||
|
api_base: os.environ/AZURE_API_BASE
|
||||||
|
|
|
@ -547,7 +547,7 @@ async def auth_callback(request: Request):
|
||||||
## CHECK IF ROLE ALLOWED TO USE PROXY ##
|
## CHECK IF ROLE ALLOWED TO USE PROXY ##
|
||||||
if ui_access_mode == "admin_only" and (
|
if ui_access_mode == "admin_only" and (
|
||||||
user_role != LitellmUserRoles.PROXY_ADMIN.value
|
user_role != LitellmUserRoles.PROXY_ADMIN.value
|
||||||
and user_role != LitellmUserRoles.PROXY_ADMIN_VIEW_ONLY.value
|
or user_role != LitellmUserRoles.PROXY_ADMIN_VIEW_ONLY.value
|
||||||
):
|
):
|
||||||
verbose_proxy_logger.debug("EXCEPTION RAISED")
|
verbose_proxy_logger.debug("EXCEPTION RAISED")
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue