Skip to content

Commit

Permalink
Merge pull request #989 from internetee/fix-invoice-mailer-whitelist
Browse files Browse the repository at this point in the history
Fix invoice mailer whitelist
  • Loading branch information
vohmar authored Sep 20, 2018
2 parents bbccc08 + bb82f47 commit 07aa736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mailers/invoice_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def invoice_email(invoice_id, html, billing_email)
@invoice = Invoice.find_by(id: invoice_id)
billing_email ||= @invoice.billing_email
return unless @invoice
return if whitelist_blocked?(@invoice.billing_email)
return if whitelist_blocked?(billing_email)

kit = PDFKit.new(html)
pdf = kit.to_pdf
Expand Down

0 comments on commit 07aa736

Please sign in to comment.