Only send email when project access level changes.

This commit is contained in:
Marin Jankovski 2014-04-03 13:24:05 +02:00
parent 1eec1f4f20
commit 0e7665e09b

View file

@ -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)