Commit 0e7665e0 authored by Marin Jankovski's avatar Marin Jankovski

Only send email when project access level changes.

parent 1eec1f4f
...@@ -10,7 +10,7 @@ class UsersProjectObserver < BaseObserver ...@@ -10,7 +10,7 @@ class UsersProjectObserver < BaseObserver
end end
def after_update(users_project) def after_update(users_project)
notification.update_team_member(users_project) notification.update_team_member(users_project) if users_project.project_access_changed?
end end
def after_destroy(users_project) def after_destroy(users_project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment