This commit is contained in:
Timothy Jaeryang Baek
2026-04-17 14:15:36 +09:00
parent e7e752f8e7
commit 8acce144f9
4 changed files with 13 additions and 24 deletions

View File

@@ -339,10 +339,11 @@ async def check_model_access(
raise HTTPException(status_code=403, detail='Model not found')
# Enforce access on chained base models
if not await has_base_model_chain_access(
if not await has_base_model_access(
user.id, model_info, user_group_ids=user_group_ids
):
raise HTTPException(status_code=403, detail='Model not found')
else:
if user.role != 'admin':
raise HTTPException(status_code=403, detail='Model not found')