This commit is contained in:
Timothy Jaeryang Baek
2026-02-23 03:22:19 -06:00
parent 895c805e62
commit 95bde946ba
3 changed files with 14 additions and 7 deletions

View File

@@ -459,7 +459,7 @@ def get_filtered_models(models, user, db=None):
if model_info:
if (
(user.role == "admin" and BYPASS_ADMIN_ACCESS_CONTROL)
or user.id == model_info["user_id"]
or user.id == model_info.get("user_id")
or model["id"] in accessible_model_ids
):
filtered_models.append(model)