Use pipeline permissions instead of build

This commit is contained in:
Kamil Trzcinski 2016-05-10 02:41:18 +03:00
parent 3953e5fcd7
commit 86cedb0825
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
.row-content-block.build-content.middle-block
.pull-right
- if can?(current_user, :update_build, @project)
- if can?(current_user, :update_pipeline, @project)
- if ci_commit.builds.latest.failed.any?(&:retryable?)
= link_to "Retry failed", retry_namespace_project_pipeline_path(@project.namespace, @project, ci_commit.id), class: 'btn btn-grouped btn-primary', method: :post

View File

@ -29,7 +29,6 @@
= icon('plus')
New
- if can?(current_user, :update_build, @project)
- unless @repository.gitlab_ci_yml
= link_to 'Get started with Pipelines', help_page_path('ci/quick_start', 'README'), class: 'btn btn-info'
@ -54,7 +53,7 @@
.table-holder
%table.table.builds
%tbody
%th Pipeline ID
%th ID
%th Commit
- @pipelines.stages.each do |stage|
%th