Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-20 21:55:47 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-21 01:06:28 +0300
commit096485ef65ffce7d31d0cefe530cc1b5c1825b52 (patch)
tree4f1b644dfb218177c543d11599492f08cf490171 /app/services
parent481644ca7c9f763d4646ad557cc3bcf8f4f71816 (diff)
Creator should be added as a master of the project on creation
This also enable a project creator to add themselves as a master of the project.
Diffstat (limited to 'app/services')
-rw-r--r--app/services/projects/create_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/create_service.rb b/app/services/projects/create_service.rb
index c94d7ab710f..a6820183bee 100644
--- a/app/services/projects/create_service.rb
+++ b/app/services/projects/create_service.rb
@@ -95,7 +95,7 @@ module Projects
system_hook_service.execute_hooks_for(@project, :create)
unless @project.group
- @project.team << [current_user, :master]
+ @project.team << [current_user, :master, current_user]
end
@project.import_start if @project.import?