Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-30 18:06:37 +0300
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-30 18:06:37 +0300
commit2da420be04ae1fa00b06149c0293a0349a085e99 (patch)
tree99a14f1c0877349fdcabd84e8c8383e59e450555 /lib
parent0e0e278196801cb9b42791ad4ef9707ad52c4896 (diff)
Use update_pipeline_schedule
Diffstat (limited to 'lib')
-rw-r--r--lib/api/pipeline_schedules.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/pipeline_schedules.rb b/lib/api/pipeline_schedules.rb
index d9509375698..93d89209934 100644
--- a/lib/api/pipeline_schedules.rb
+++ b/lib/api/pipeline_schedules.rb
@@ -74,7 +74,7 @@ module API
optional :active, type: Boolean, desc: 'The activation of pipeline schedule'
end
put ':id/pipeline_schedules/:pipeline_schedule_id' do
- authorize! :create_pipeline_schedule, user_project
+ authorize! :update_pipeline_schedule, user_project
not_found!('PipelineSchedule') unless pipeline_schedule
@@ -92,7 +92,7 @@ module API
requires :pipeline_schedule_id, type: Integer, desc: 'The pipeline schedule id'
end
post ':id/pipeline_schedules/:pipeline_schedule_id/take_ownership' do
- authorize! :create_pipeline_schedule, user_project
+ authorize! :update_pipeline_schedule, user_project
not_found!('PipelineSchedule') unless pipeline_schedule