Skip to content

Commit

Permalink
feat : custom仓库支持本地权限校验 TencentBlueKing#1905 (TencentBlueKing#1944)
Browse files Browse the repository at this point in the history
* feat: 修改生成分支逻辑 TencentBlueKing#738

* feat: 修改生成分支逻辑 TencentBlueKing#738

* feat: 修改生成分支逻辑 TencentBlueKing#738

* feat: 修改生成分支逻辑 TencentBlueKing#738

* feat: 修改生成分支逻辑 TencentBlueKing#738

* feat : custom仓库支持本地权限校验 TencentBlueKing#1905

* feat : custom仓库支持本地权限校验 TencentBlueKing#1905

* feat : custom仓库支持本地权限校验 TencentBlueKing#1905

* feat : custom仓库支持本地权限校验 TencentBlueKing#1905

* feat : custom仓库支持本地权限校验 TencentBlueKing#1905

* feat : custom仓库支持本地权限校验 TencentBlueKing#1905

* feat : custom仓库支持本地权限校验 TencentBlueKing#1905
  • Loading branch information
owenlxu authored Mar 28, 2024
1 parent cf3eb56 commit 1eb163c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import com.tencent.bkrepo.auth.constant.CUSTOM
import com.tencent.bkrepo.auth.constant.LOG
import com.tencent.bkrepo.auth.constant.PIPELINE
import com.tencent.bkrepo.auth.constant.REPORT
import com.tencent.bkrepo.auth.pojo.enums.PermissionAction.MANAGE
import com.tencent.bkrepo.auth.pojo.enums.PermissionAction.READ
import com.tencent.bkrepo.auth.pojo.enums.PermissionAction.WRITE
import com.tencent.bkrepo.auth.pojo.enums.PermissionAction.VIEW
Expand Down Expand Up @@ -149,6 +150,9 @@ class DevopsPermissionServiceImpl constructor(

// project权限
if (resourceType == PROJECT.name) {
if (action == MANAGE.name) {
return isDevopsProjectAdmin(uid, projectId!!)
}
return isDevopsProjectMember(uid, projectId!!, action)
|| checkBkIamV3ProjectPermission(projectId!!, uid, action)
}
Expand Down

0 comments on commit 1eb163c

Please sign in to comment.