mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix - deleting keys on Admin UI
This commit is contained in:
parent
e20d3f29b0
commit
4f29b126ac
1 changed files with 4 additions and 1 deletions
|
@ -1099,6 +1099,9 @@ async def user_api_key_auth(
|
||||||
"/sso",
|
"/sso",
|
||||||
"/login",
|
"/login",
|
||||||
"/key",
|
"/key",
|
||||||
|
"/key/generate",
|
||||||
|
"/key/update",
|
||||||
|
"/key/info",
|
||||||
"/config",
|
"/config",
|
||||||
"/spend",
|
"/spend",
|
||||||
"/user",
|
"/user",
|
||||||
|
@ -5589,7 +5592,7 @@ async def new_user(data: NewUserRequest):
|
||||||
if "user_role" in data_json:
|
if "user_role" in data_json:
|
||||||
user_role = data_json["user_role"]
|
user_role = data_json["user_role"]
|
||||||
if user_role is not None:
|
if user_role is not None:
|
||||||
if user_role not in ["admin", "app_owner", "app_user"]:
|
if user_role not in ["proxy_admin", "app_owner", "app_user"]:
|
||||||
raise ProxyException(
|
raise ProxyException(
|
||||||
message=f"Invalid user role, passed in {user_role}. Must be one of 'admin', 'app_owner', 'app_user'",
|
message=f"Invalid user role, passed in {user_role}. Must be one of 'admin', 'app_owner', 'app_user'",
|
||||||
type="invalid_user_role",
|
type="invalid_user_role",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue