BigW Consortium Gitlab

Commit d426195d by Hiroyuki Sato

Fix API::MergeRequest

Fixes #5144 Refs #4996
parent 5367e42b
......@@ -4,7 +4,7 @@ module API
before { authenticate! }
before { Thread.current[:current_user] = current_user }
resource :projects, requirements: { id: /[a-zA-Z.0-9_\-]+\/[a-zA-Z.0-9_\-]+/ } do
resource :projects do
helpers do
def handle_merge_request_errors!(errors)
if errors[:project_access].any?
......
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