summaryrefslogtreecommitdiff
path: root/app/views/projects/pipeline_schedules
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-12-05 23:23:59 -0800
committerStan Hu <stanhu@gmail.com>2017-12-12 15:07:24 -0800
commitbc2d32aca0be46250bd02c9312d1064df024b621 (patch)
tree606015ccb2deb339f10db6830c052f210718a384 /app/views/projects/pipeline_schedules
parentf6966cfa63fab7e3c8847d69101c6c6a444fb85f (diff)
downloadgitlab-ce-bc2d32aca0be46250bd02c9312d1064df024b621.tar.gz
Create a play_pipeline_schedule policy and use it
Diffstat (limited to 'app/views/projects/pipeline_schedules')
-rw-r--r--app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml b/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml
index 57f0ffba9ff..12d7e81c39e 100644
--- a/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml
+++ b/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml
@@ -26,7 +26,7 @@
= pipeline_schedule.owner&.name
%td
.pull-right.btn-group
- - if can?(current_user, :create_pipeline, @project)
+ - if can?(current_user, :play_pipeline_schedule, pipeline_schedule)
= link_to run_pipeline_schedule_path(pipeline_schedule), method: :post, title: s_('Play'), class: 'btn' do
= icon('play')
- if can?(current_user, :update_pipeline_schedule, pipeline_schedule)