Commit 6ffd2f3d authored by Valeriy Sizov's avatar Valeriy Sizov

Changes after review

parent 93e8d426
module Gitlab
# Issues API
# MergeRequest API
class MergeRequests < Grape::API
before { authenticate! }
......@@ -26,7 +26,7 @@ module Gitlab
merge_request = user_project.merge_requests.new(attrs)
merge_request.author = current_user
authorize! :write_merge_request, merge_request
authorize! :write_merge_request, user_project
if merge_request.save
merge_request.reload_code
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment