fix: arena access control
This commit is contained in:
1 parent
269151cd2c
commit
f37d847521
3 files changed
+62
-38
No files matched your search
@@ -510,7 +510,7 @@ async def generate_chat_completion(
|
||||
status_code=403,
|
||||
detail="Model not found",
|
||||
)
|
||||
else:
|
||||
elif not bypass_filter:
|
||||
if user.role != "admin":
|
||||
raise HTTPException(
|
||||
status_code=403,
|
||||
|
||||
Reference in new issue
Block a user