mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Merge pull request #989 from internetee/fix-invoice-mailer-whitelist
Fix invoice mailer whitelist
This commit is contained in:
commit
07aa736d43
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class InvoiceMailer < ApplicationMailer
|
|||
@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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue