Skip to content

Commit

Permalink
Merge pull request #2839 from yunlong098/feat/restriction
Browse files Browse the repository at this point in the history
feat: 用户组添加成员时限制部分部门不可被选择
  • Loading branch information
nannan00 authored Dec 24, 2024
2 parents 07f8157 + b77211d commit ca425dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions saas/backend/common/vue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

# 添加前端功能启用开关
Expand Down
3 changes: 3 additions & 0 deletions saas/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="")

0 comments on commit ca425dc

Please sign in to comment.