summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-04-03 13:24:05 +0200
committerMarin Jankovski <marin@gitlab.com>2014-04-03 13:24:05 +0200
commit0e7665e09b75a5ddeed16df894f31a632d7338aa (patch)
treee2cdfdfd8065f008a6f43cff83a7ff3df2d07723
parent1eec1f4f20a13d8110757fb5027462346aa0a9fc (diff)
downloadgitlab-ce-0e7665e09b75a5ddeed16df894f31a632d7338aa.tar.gz
Only send email when project access level changes.
-rw-r--r--app/observers/users_project_observer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/observers/users_project_observer.rb b/app/observers/users_project_observer.rb
index 93233898cc8..44c72b30187 100644
--- a/app/observers/users_project_observer.rb
+++ b/app/observers/users_project_observer.rb
@@ -10,7 +10,7 @@ class UsersProjectObserver < BaseObserver
end
def after_update(users_project)
- notification.update_team_member(users_project)
+ notification.update_team_member(users_project) if users_project.project_access_changed?
end
def after_destroy(users_project)