Skip to content
Snippets Groups Projects
Verified Commit 10ba7141 authored by Matija Čupić's avatar Matija Čupić
Browse files

Authorize read_pipeline before read_build

parent 6d1cb1f2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -59,6 +59,7 @@ module API
# rubocop: disable CodeReuse/ActiveRecord
get ':id/pipelines/:pipeline_id/jobs' do
pipeline = user_project.pipelines.find(params[:pipeline_id])
authorize!(:read_pipeline, user_project)
authorize!(:read_build, pipeline)
 
builds = pipeline.builds
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment