@@ -296,8 +296,9 class MailHandler < ActionMailer::Base | |||||
296 | if user.allowed_to?("add_#{obj.class.name.underscore}_watchers".to_sym, obj.project) |
|
296 | if user.allowed_to?("add_#{obj.class.name.underscore}_watchers".to_sym, obj.project) | |
297 | addresses = [email.to, email.cc].flatten.compact.uniq.collect {|a| a.strip.downcase} |
|
297 | addresses = [email.to, email.cc].flatten.compact.uniq.collect {|a| a.strip.downcase} | |
298 | unless addresses.empty? |
|
298 | unless addresses.empty? | |
299 |
|
|
299 | User.active.where('LOWER(mail) IN (?)', addresses).each do |w| | |
300 |
|
|
300 | obj.add_watcher(w) | |
|
301 | end | |||
301 | end |
|
302 | end | |
302 | end |
|
303 | end | |
303 | end |
|
304 | end |
General Comments 0
You need to be logged in to leave comments.
Login now