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

Move pipeline auth above pipeline assignment

parent 10ba7141
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -58,8 +58,8 @@ module API
end
# rubocop: disable CodeReuse/ActiveRecord
get ':id/pipelines/:pipeline_id/jobs' do
pipeline = user_project.pipelines.find(params[:pipeline_id])
authorize!(:read_pipeline, user_project)
pipeline = user_project.pipelines.find(params[:pipeline_id])
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