summaryrefslogtreecommitdiff
path: root/app/views/projects/pipeline_schedules
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-18 00:07:42 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-18 00:07:42 +0000
commitc8ccf45aa0aa17413b107f9bbf9d6f160eaa8779 (patch)
tree77b07d805562786cf9b218e25e0ed18fae396448 /app/views/projects/pipeline_schedules
parent360ee1db0bf3bba2fc7aad7f230ec80829561227 (diff)
downloadgitlab-ce-c8ccf45aa0aa17413b107f9bbf9d6f160eaa8779.tar.gz
Add latest changes from gitlab-org/gitlab@master
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 0de31f59033..37b2b3ecfde 100644
--- a/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml
+++ b/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml
@@ -37,7 +37,7 @@
- if can?(current_user, :play_pipeline_schedule, pipeline_schedule)
= link_to play_pipeline_schedule_path(pipeline_schedule), method: :post, title: _('Play'), class: 'btn gl-button btn-default btn-icon' do
= sprite_icon('play')
- - if can?(current_user, :take_ownership_pipeline_schedule, pipeline_schedule)
+ - if can?(current_user, :admin_pipeline_schedule, pipeline_schedule) && pipeline_schedule.owner != current_user
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-take-ownership-button has-tooltip', title: s_('PipelineSchedule|Take ownership to edit'), data: { url: take_ownership_pipeline_schedule_path(pipeline_schedule) } }) do
= s_('PipelineSchedules|Take ownership')
- if can?(current_user, :update_pipeline_schedule, pipeline_schedule)