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:
authorMatija Čupić <matteeyah@gmail.com>2018-12-18 16:36:26 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-12-22 14:11:36 +0300
commit8a36125ada579300f746e0f2207282149acdf1b3 (patch)
tree705ce742c19ad072722181bad4bd633bf2c79d80 /lib
parentb19065594989d13a417660fc346f6213cd73674d (diff)
Authorize read_pipeline before read_build
Diffstat (limited to 'lib')
-rw-r--r--lib/api/jobs.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/jobs.rb b/lib/api/jobs.rb
index bd704f3bf25..e2ab60f3855 100644
--- a/lib/api/jobs.rb
+++ b/lib/api/jobs.rb
@@ -59,6 +59,7 @@ module API
# rubocop: disable CodeReuse/ActiveRecord
get ':id/pipelines/:pipeline_id/jobs' do
pipeline = user_project.ci_pipelines.find(params[:pipeline_id])
+ authorize!(:read_pipeline, user_project)
authorize!(:read_build, pipeline)
builds = pipeline.builds