From b77211dac0adec2ea311266a611cfa71d39052a6 Mon Sep 17 00:00:00 2001 From: yunlongJia Date: Fri, 20 Dec 2024 10:47:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=93=9D=E7=9B=BE=E4=BE=A7=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=88=90=E5=91=98=E6=97=B6=E9=99=90=E5=88=B6=E5=8B=BE?= =?UTF-8?q?=E9=80=89=E5=85=AC=E5=8F=B8&=E4=BA=8B=E4=B8=9A=E7=BE=A4?= =?UTF-8?q?=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- saas/backend/common/vue.py | 2 ++ saas/config/default.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/saas/backend/common/vue.py b/saas/backend/common/vue.py index 85f6aaea3..e77b1fa03 100644 --- a/saas/backend/common/vue.py +++ b/saas/backend/common/vue.py @@ -40,6 +40,8 @@ def get(self, request): "BK_SHARED_RES_URL": settings.BK_SHARED_RES_URL.rstrip("/"), # App Code "BK_APP_CODE": settings.APP_CODE, + # 不允许作为用户组成员的部门 ID,用英文逗号分割 + "DEPARTMENT_IDS_NOT_ALLOWED_AS_GROUP_MEMBER": settings.DEPARTMENT_IDS_NOT_ALLOWED_AS_GROUP_MEMBER } # 添加前端功能启用开关 diff --git a/saas/config/default.py b/saas/config/default.py index 5d84c3975..c6ed357d3 100644 --- a/saas/config/default.py +++ b/saas/config/default.py @@ -496,3 +496,6 @@ # 全局配置地址 BK_SHARED_RES_URL = env.str("BK_SHARED_RES_URL", default="") + +# 不允许作为用户组成员的部门 ID,用英文逗号分割 +DEPARTMENT_IDS_NOT_ALLOWED_AS_GROUP_MEMBER = env.str("DEPARTMENT_IDS_NOT_ALLOWED_AS_GROUP_MEMBER", default="")