diff --git a/app/models/dmail.rb b/app/models/dmail.rb index d731a520b..7205551ef 100644 --- a/app/models/dmail.rb +++ b/app/models/dmail.rb @@ -173,7 +173,7 @@ class Dmail < ActiveRecord::Base end def send_dmail - if to.receive_email_notifications? && to.email.include?("@") && owner_id == CurrentUser.id + if to.receive_email_notifications? && to.email.include?("@") && owner_id == to.id UserMailer.dmail_notice(self).deliver end end