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
diff options
context:
space:
mode:
authorTony Rom <thetonyrom@gmail.com>2018-01-10 20:05:34 +0300
committerTony Rom <thetonyrom@gmail.com>2018-01-10 20:05:34 +0300
commit7ed08fcd5db058500b3092fd94791e9bd8a29bb7 (patch)
tree2dd5d99eddef5715b634d9a630c7f354b5b3af87 /lib/api/merge_requests.rb
parentfd88b0ca56b3a4230902f76a7b049228e53e6bb0 (diff)
Fix style
Diffstat (limited to 'lib/api/merge_requests.rb')
-rw-r--r--lib/api/merge_requests.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/api/merge_requests.rb b/lib/api/merge_requests.rb
index 77c563ec0b4..6ccdacd1067 100644
--- a/lib/api/merge_requests.rb
+++ b/lib/api/merge_requests.rb
@@ -24,8 +24,9 @@ module API
.preload(:notes, :author, :assignee, :milestone, :latest_merge_request_diff, :labels, :timelogs)
end
- def merge_request_pipelines_with_access(access_level = :read_pipeline)
- authorize! access_level, user_project
+ def merge_request_pipelines_with_access
+ authorize! :read_pipeline, user_project
+
mr = find_merge_request_with_access(params[:merge_request_iid])
mr.all_pipelines
end