diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-04-03 13:24:05 +0200 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-04-03 13:24:05 +0200 |
commit | 0e7665e09b75a5ddeed16df894f31a632d7338aa (patch) | |
tree | e2cdfdfd8065f008a6f43cff83a7ff3df2d07723 | |
parent | 1eec1f4f20a13d8110757fb5027462346aa0a9fc (diff) | |
download | gitlab-ce-0e7665e09b75a5ddeed16df894f31a632d7338aa.tar.gz |
Only send email when project access level changes.
-rw-r--r-- | app/observers/users_project_observer.rb | 2 |
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) |