Skip to content

Commit

Permalink
Merge pull request #10897 from hejieehe/issue-9620-1
Browse files Browse the repository at this point in the history
feat:支持管理员查看项目成员 #9620 增加兜底, 避免权限代持信息丢失
  • Loading branch information
bkci-bot authored Sep 2, 2024
2 parents d96cdc6 + bf41f3f commit 0b6a6d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,14 @@ class PipelineBuildService(
projectVO = projectVO,
channelCode = channelCode,
isMobile = isMobile,
pipelineAuthorizer = pipelineRepositoryService.getPipelineOauthUser(
projectId = pipeline.projectId,
pipelineId = pipeline.pipelineId
)
pipelineAuthorizer = if (pipeline.channelCode == ChannelCode.BS) {
pipelineRepositoryService.getPipelineOauthUser(
projectId = pipeline.projectId,
pipelineId = pipeline.pipelineId
)
} else {
null
}
)

val context = StartBuildContext.init(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class SubPipelineStartUpService @Autowired constructor(
pipelineRepositoryService.getPipelineOauthUser(
projectId = parentProjectId,
pipelineId = parentPipelineId
)
) ?: userId
} else {
userId
}
Expand Down

0 comments on commit 0b6a6d1

Please sign in to comment.