-
- Downloads
There was an error fetching the commit references. Please try again later.
Use MergeRequest#source_project as permissions reference for MergeRequest#all_pipelines
MergeRequest#all_pipelines fetches Ci::Pipeline records from the source project, so we should specifically check that project for permissions. This was already happening for intra-project merge requests, but in the event that the target and source projects both have private builds, we should ensure that the project permissions are respected.
Showing
- app/controllers/projects/merge_requests/application_controller.rb 1 addition, 1 deletion...rollers/projects/merge_requests/application_controller.rb
- app/controllers/projects/merge_requests_controller.rb 2 additions, 1 deletionapp/controllers/projects/merge_requests_controller.rb
- changelogs/unreleased/security-mr-pipeline-permissions.yml 5 additions, 0 deletionschangelogs/unreleased/security-mr-pipeline-permissions.yml
- spec/controllers/projects/merge_requests_controller_spec.rb 94 additions, 4 deletionsspec/controllers/projects/merge_requests_controller_spec.rb
Please register or sign in to comment