From 2b1eb580524b9e2f629e38d17bb5e18e53f0bef0 Mon Sep 17 00:00:00 2001 From: greysonfang Date: Fri, 15 Nov 2024 17:56:04 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E7=94=A8=E6=88=B7=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E8=A7=86=E8=A7=92=20=E6=9D=83=E9=99=90=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=BC=98=E5=8C=96=20#11138?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/RbacPermissionManageFacadeServiceImpl.kt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/backend/ci/core/auth/biz-auth/src/main/kotlin/com/tencent/devops/auth/provider/rbac/service/RbacPermissionManageFacadeServiceImpl.kt b/src/backend/ci/core/auth/biz-auth/src/main/kotlin/com/tencent/devops/auth/provider/rbac/service/RbacPermissionManageFacadeServiceImpl.kt index 33966d3d72c..25447a03fa0 100644 --- a/src/backend/ci/core/auth/biz-auth/src/main/kotlin/com/tencent/devops/auth/provider/rbac/service/RbacPermissionManageFacadeServiceImpl.kt +++ b/src/backend/ci/core/auth/biz-auth/src/main/kotlin/com/tencent/devops/auth/provider/rbac/service/RbacPermissionManageFacadeServiceImpl.kt @@ -852,10 +852,12 @@ class RbacPermissionManageFacadeServiceImpl( condition = ResourceAuthorizationHandoverConditionRequest( projectCode = projectCode, resourceType = ResourceTypeId.PIPELINE, + fullSelection = true, filterResourceCodes = invalidPipelines, handoverChannel = HandoverChannelCode.MANAGER, handoverFrom = handoverMemberDTO.targetMember.id, - handoverTo = handoverMemberDTO.handoverTo.id + handoverTo = handoverMemberDTO.handoverTo.id, + checkPermission = false ) ) } @@ -999,9 +1001,11 @@ class RbacPermissionManageFacadeServiceImpl( projectCode = projectCode, resourceType = ResourceTypeId.PIPELINE, filterResourceCodes = invalidPipelines, + fullSelection = true, handoverChannel = HandoverChannelCode.MANAGER, handoverFrom = removeMemberDTO.targetMember.id, - handoverTo = removeMemberDTO.handoverTo!!.id + handoverTo = removeMemberDTO.handoverTo!!.id, + checkPermission = false ) ) } @@ -1533,9 +1537,11 @@ class RbacPermissionManageFacadeServiceImpl( projectCode = overview.projectCode, resourceType = resourceType, filterResourceCodes = authorizations.map { it.itemId }, + fullSelection = true, handoverChannel = HandoverChannelCode.MANAGER, handoverFrom = overview.applicant, - handoverTo = overview.approver + handoverTo = overview.approver, + checkPermission = false ) ) }