From adbe269aeac9bf261f80f0a26a045ff7d2245be4 Mon Sep 17 00:00:00 2001 From: Toks Date: Tue, 27 Aug 2013 00:39:07 -0400 Subject: [PATCH] fixes #1507 --- app/models/dmail.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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