mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-02 07:52:15 +02:00
Readd default email check for email disclose
This commit is contained in:
parent
683a2f4629
commit
0a13ff9976
2 changed files with 14 additions and 12 deletions
|
@ -1400,7 +1400,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
is_security = contact.contact_type == contact.ContactTypeChoices.SECURITY
|
||||
DF = epp.DiscloseField
|
||||
fields = {DF.EMAIL}
|
||||
disclose = is_security
|
||||
disclose = is_security and contact.email != PublicContact.get_default_security().email
|
||||
# Delete after testing
|
||||
logger.info("Updated domain contact to disclose: %s", disclose)
|
||||
# Will only disclose DF.EMAIL if its not the default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue