This commit is contained in:
Timothy Jaeryang Baek
2026-03-26 18:24:17 -05:00
parent 52a06bd48a
commit f3f8f9874f
+4
View File
@@ -452,6 +452,10 @@ def get_filtered_models(models, user, db=None):
or model['id'] in accessible_model_ids
):
filtered_models.append(model)
elif user.role == 'admin':
# No DB entry means no access control configured yet;
# only admins can see unconfigured models.
filtered_models.append(model)
return filtered_models
else: