Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
6ffd2f3d
Commit
6ffd2f3d
authored
Oct 22, 2012
by
Valeriy Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes after review
parent
93e8d426
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/api/merge_requests.rb
lib/api/merge_requests.rb
+2
-2
No files found.
lib/api/merge_requests.rb
View file @
6ffd2f3d
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_reques
t
authorize!
:write_merge_request
,
user_projec
t
if
merge_request
.
save
merge_request
.
reload_code
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment