From f6d0fdefc551a9869231acd1d906e144761d1e2d Mon Sep 17 00:00:00 2001 From: hjlarry Date: Sun, 12 Apr 2026 21:43:56 +0800 Subject: [PATCH] Revert "tighten workflow room app lookup" This reverts commit 5fcda1aaac54649dbe7b7a7a351de84b4ccffc52. --- api/services/workflow_collaboration_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/workflow_collaboration_service.py b/api/services/workflow_collaboration_service.py index 97bc87c241..7527d3752b 100644 --- a/api/services/workflow_collaboration_service.py +++ b/api/services/workflow_collaboration_service.py @@ -80,7 +80,7 @@ class WorkflowCollaborationService: def _can_access_workflow(self, workflow_id: str, tenant_id: str) -> bool: """Check that the collaboration room belongs to an active app in the caller's current tenant.""" app_id = db.session.scalar( - select(App.id).where(App.id == workflow_id, App.tenant_id == tenant_id, App.status == "normal").limit(1) + select(App.id).where(App.id == workflow_id, App.tenant_id == tenant_id).limit(1) ) return app_id is not None