Backports EE 2756 logic to CE.

This commit is contained in:
Tiago Botelho 2017-08-29 12:11:21 +01:00
parent d546f7d36e
commit b7048c091a

View file

@ -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