fixes #1507
This commit is contained in:
@@ -173,7 +173,7 @@ class Dmail < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def send_dmail
|
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
|
UserMailer.dmail_notice(self).deliver
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user