mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 09:45:11 +02:00
Do not show address in domain mailer unless address processing is disabled
#330
This commit is contained in:
parent
55571b3953
commit
01c6804d2a
5 changed files with 26 additions and 8 deletions
|
@ -8,6 +8,7 @@ class DomainMailer < ApplicationMailer
|
|||
|
||||
@old_registrant = Registrant.find(old_registrant_id)
|
||||
@new_registrant = Registrant.find(new_registrant_id)
|
||||
@address_processing = Contact.address_processing?
|
||||
|
||||
return if whitelist_blocked?(@new_registrant.email)
|
||||
mail(to: format(@new_registrant.email),
|
||||
|
@ -23,6 +24,7 @@ class DomainMailer < ApplicationMailer
|
|||
|
||||
@old_registrant = Registrant.find(old_registrant_id)
|
||||
@new_registrant = Registrant.find(new_registrant_id)
|
||||
@address_processing = Contact.address_processing?
|
||||
|
||||
return if whitelist_blocked?(@old_registrant.email)
|
||||
mail(to: format(@old_registrant.email),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue