Skip to content

Commit

Permalink
Merge pull request #1237 from lannoy0523/issue_1220
Browse files Browse the repository at this point in the history
feat:流水线仓库管理员支持批量删除 #1220
  • Loading branch information
owenlxu authored Oct 24, 2023
2 parents 52d94be + 0e6294c commit d8bcbb3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ import com.tencent.bkrepo.repository.pojo.node.user.UserNodeUpdateRequest
import com.tencent.bkrepo.repository.pojo.software.ProjectPackageOverview
import com.tencent.bkrepo.repository.service.node.NodeSearchService
import com.tencent.bkrepo.repository.service.node.NodeService
import com.tencent.bkrepo.common.artifact.util.PipelineRepoUtils
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
Expand Down Expand Up @@ -159,7 +158,6 @@ class UserNodeController(
fullPaths = fullPaths,
operator = userId
)
PipelineRepoUtils.forbidPipeline(repoName)
return ResponseBuilder.success(nodeService.deleteNodes(nodesDeleteRequest))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{{$t('batchDownload')}}
</bk-button>
<bk-button
v-if="multiSelect.length && repoName !== 'pipeline'"
v-if="multiSelect.length && ((repoName === 'pipeline' && (userInfo.admin || userInfo.manage)) || repoName !== 'pipeline')"
class="ml10"
@click="handlerMultiDelete()">
{{ $t('batchDeletion') }}
Expand Down

0 comments on commit d8bcbb3

Please sign in to comment.