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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: account check in runtime (#569)
John Wang24f34569905c
diff --git a/api/app.py b/api/app.pyindex a2812852228..f385e8d378e 100644--- a/api/app.py+++ b/api/app.py@@ -2,6 +2,8 @@import osfrom datetime import datetime+from werkzeug.exceptions import Forbidden+if not os.environ.get("DEBUG") or os.environ.get("DEBUG").lower() != 'true':from gevent import monkeymonkey.patch_all()@@ -27,7 +29,7 @@ from events import event_handlersimport corefrom config import Config, CloudEditionConfigfrom commands import register_commands-from models.account import TenantAccountJoin+from models.account import TenantAccountJoin, AccountStatusfrom models.model import Account, EndUser, Appimport warnings@@ -101,6 +103,9 @@ def load_user(user_id):account = db.session.query(Account).filter(Account.id == account_id).first()if account:+ if account.status == AccountStatus.BANNED.value or account.status == AccountStatus.CLOSED.value:+ raise Forbidden('Account is banned or closed.')+workspace_id = session.get('workspace_id')if workspace_id:tenant_account_join = db.session.query(TenantAccountJoin).filter(