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:
authorSean McGivern <sean@mcgivern.me.uk>2017-01-18 21:18:13 +0300
committerSean McGivern <sean@mcgivern.me.uk>2017-01-18 21:18:13 +0300
commitcc1e43da3993b6839b4dbe03ae1b8bfb81066666 (patch)
tree50a10f227bd8f08776ab5acd2e40a04f4cc8c42f /lib/api/helpers.rb
parentc739005849dcaecc54214fe403b4c7e8c9ab151f (diff)
parent0f3c9355c1b57a56b4027df4deb78a2520596b15 (diff)
Merge branch 'time-tracking-api' into 'master'
Time tracking API Closes #25861 See merge request !8483
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index eb2d370c68e..6b81fbf294e 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -86,6 +86,10 @@ module API
IssuesFinder.new(current_user, project_id: user_project.id).find(id)
end
+ def find_project_merge_request(id)
+ MergeRequestsFinder.new(current_user, project_id: user_project.id).find(id)
+ end
+
def authenticate!
unauthorized! unless current_user
end