From 0e7665e09b75a5ddeed16df894f31a632d7338aa Mon Sep 17 00:00:00 2001 From: Marin Jankovski Date: Thu, 3 Apr 2014 13:24:05 +0200 Subject: [PATCH] Only send email when project access level changes. --- app/observers/users_project_observer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)