Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Update login.py (#15320)

albcunha87efd4ab84b2
diff --git a/api/libs/login.py b/api/libs/login.py
index b128c53c621..be9478e850b 100644
--- a/api/libs/login.py
+++ b/api/libs/login.py
@@ -77,7 +77,7 @@ def login_required(func):
)
if tenant_account_join:
tenant, ta = tenant_account_join
- account = Account.query.filter_by(id=ta.account_id).first()
+ account = db.session.query(Account).filter_by(id=ta.account_id).first()
# Login admin
if account:
account.current_tenant = tenant