Authorize read_pipeline before read_build
This commit is contained in:
parent
a1c77f2d34
commit
89b856e76c
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue