summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-07-03 12:02:31 +0200
committerMarin Jankovski <marin@gitlab.com>2014-07-03 12:02:31 +0200
commitb048c7d24a61c7e9bd52671b483b0998e032bc34 (patch)
tree7967b794d4d5484822f0581c753dd4889bdfd74d /app
parent8d106bed3c2146217697e9a13e637dd8c5d60c48 (diff)
downloadgitlab-ce-b048c7d24a61c7e9bd52671b483b0998e032bc34.tar.gz
Do not notify project owner on project creation.
Diffstat (limited to 'app')
-rw-r--r--app/models/users_project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/users_project.rb b/app/models/users_project.rb
index 69b2d71b436..60bdf7a3cfb 100644
--- a/app/models/users_project.rb
+++ b/app/models/users_project.rb
@@ -124,7 +124,7 @@ class UsersProject < ActiveRecord::Base
author_id: self.user.id
)
- notification_service.new_team_member(self)
+ notification_service.new_team_member(self) unless owner?
system_hook_service.execute_hooks_for(self, :create)
end