This commit is contained in:
Toks
2013-08-27 00:39:07 -04:00
parent 3b45c4d866
commit adbe269aea

View File

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