Allow registrar modules to set default WHOIS privacy status on domain… (#3286)

Allow registrar modules to set default WHOIS privacy status on domain registration

Allow registrar modules to set WHOIS privacy status during domain
registration. Some registries (e.g. .ge) automatically enable privacy
protection or require it by default. This change allows modules to return the resulting privacy status via getPrivacyEnabled() so the domain model can store the correct value.

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
This commit is contained in:
NamingoandAdam Daley authored and GitHub committed 2026-03-08 20:45:11 +00:00
1 parent b720c81229
commit cd68d32d03
1 file changed
+5
+5
View File
@@ -335,6 +335,11 @@ class Service implements \FOSSBilling\InjectionAwareInterface
$model->locked = $locked;
}
$privacy = $whois->getPrivacyEnabled();
if ($privacy !== null) {
$model->privacy = $privacy;
}
// sync whois
$contact = $whois->getContactRegistrar();