summaryrefslogtreecommitdiff
path: root/app/models/members
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-13 12:01:28 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-13 12:02:58 +0100
commit9b917b4a73ddd7607cd19847e89381fda0ec65d5 (patch)
tree8f571ab7587c79de29cb0640422931b333f75db1 /app/models/members
parent522efa43fe9ff5828838a5d5ed49db23bfd88c95 (diff)
downloadgitlab-ce-9b917b4a73ddd7607cd19847e89381fda0ec65d5.tar.gz
Add "User created project Namespace / Project" event
Diffstat (limited to 'app/models/members')
-rw-r--r--app/models/members/project_member.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/models/members/project_member.rb b/app/models/members/project_member.rb
index ff05ab1590f..e4791d0f0aa 100644
--- a/app/models/members/project_member.rb
+++ b/app/models/members/project_member.rb
@@ -114,9 +114,11 @@ class ProjectMember < Member
end
def post_create_hook
-
- event_service.join_project(self.project, self.user)
- notification_service.new_team_member(self) unless owner?
+ unless owner?
+ event_service.join_project(self.project, self.user)
+ notification_service.new_team_member(self)
+ end
+
system_hook_service.execute_hooks_for(self, :create)
end