#283: added extra condition to #notify_users

This commit is contained in:
Vokhmin Alexey V 2013-08-28 19:17:22 +04:00
parent b7cc64c099
commit b17641e575
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ class BuildList < ActiveRecord::Base
def notify_users
unless mass_build_id
users = [user]
users << publisher if publisher
users << publisher if publisher && user_id != publisher_id
users.select!{ |u| u.notifier.can_notify? && u.notifier.new_build? }
# find associated users