Commit 0e7665e09b75a5ddeed16df894f31a632d7338aa
1 parent
1eec1f4f
Exists in
spb-stable
and in
3 other branches
Only send email when project access level changes.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/observers/users_project_observer.rb
... | ... | @@ -10,7 +10,7 @@ class UsersProjectObserver < BaseObserver |
10 | 10 | end |
11 | 11 | |
12 | 12 | def after_update(users_project) |
13 | - notification.update_team_member(users_project) | |
13 | + notification.update_team_member(users_project) if users_project.project_access_changed? | |
14 | 14 | end |
15 | 15 | |
16 | 16 | def after_destroy(users_project) | ... | ... |