diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-08-30 12:45:05 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-08-30 12:45:05 +0300 |
commit | 988c611b682ece128dbbc774adc52d0bee96d93f (patch) | |
tree | be8133a48fbfce4ad8cffa28c7f475af4e065983 /app/services/projects/create_service.rb | |
parent | 11d2ac1f94ba1a3c469ef10aac2ca63bcf316e27 (diff) | |
parent | b7048c091a1f1ad093ee261454e232d14e4cd325 (diff) |
Merge branch '2756-ee-to-ce-backport' into 'master'
Backports EE 2756 logic to CE.
See merge request !13892
Diffstat (limited to 'app/services/projects/create_service.rb')
-rw-r--r-- | app/services/projects/create_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/projects/create_service.rb b/app/services/projects/create_service.rb index a0cd52014a2..71533da31b1 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 |