[add] Default label for the entity type

This commit is contained in:
lanceyq
2026-03-06 11:49:02 +08:00
parent 248f0d95ac
commit d3399dfaf5
3 changed files with 3 additions and 1 deletions

View File

@@ -374,7 +374,7 @@ class OntologySceneRepository:
count = self.db.query(OntologyScene).filter(
OntologyScene.scene_id == scene_id,
OntologyScene.workspace_id == workspace_id
(OntologyScene.workspace_id == workspace_id) | (OntologyScene.is_system_default == True)
).count()
is_owner = count > 0