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="")