From b7048c091a1f1ad093ee261454e232d14e4cd325 Mon Sep 17 00:00:00 2001 From: Tiago Botelho Date: Tue, 29 Aug 2017 12:11:21 +0100 Subject: [PATCH] Backports EE 2756 logic to CE. --- app/services/projects/create_service.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/services/projects/create_service.rb b/app/services/projects/create_service.rb index 48578b6d9e5..7fbf40ae373 100644 --- a/app/services/projects/create_service.rb +++ b/app/services/projects/create_service.rb @@ -44,6 +44,8 @@ module Projects @project.namespace_id = current_user.namespace_id end + yield(@project) if block_given? + @project.creator = current_user if forked_from_project_id