From be3677f145131d11a3008682f7ec2638d4af5705 Mon Sep 17 00:00:00 2001 From: wangxiaolei Date: Tue, 23 Jun 2026 18:11:52 +0800 Subject: [PATCH] fix: fix logic (#37812) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- api/services/enterprise/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")