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.

fix: fix logic (#37812)

wangxiaoleibe3677f14513
diff --git a/api/services/enterprise/base.py b/api/services/enterprise/base.py
index 4e441b53af0..96c362b3dfc 100644
--- a/api/services/enterprise/base.py
+++ b/api/services/enterprise/base.py
@@ -185,8 +185,8 @@ class EnterpriseRequest(BaseRequest):
if (
not cls.rbac_base_url.startswith("http")
- or not cls.rbac_base_url.startswith("https")
- or not cls.rbac_base_url
+ and not cls.rbac_base_url.startswith("https")
+ and not cls.rbac_base_url
):
raise ValueError("ENTERPRISE_RBAC_API_URL is required when RBAC_ENABLED=true")