From cd68d32d03486f578da4313f4bcf1c57754d9467 Mon Sep 17 00:00:00 2001 From: Namingo Date: Sun, 8 Mar 2026 22:45:11 +0200 Subject: [PATCH] =?UTF-8?q?Allow=20registrar=20modules=20to=20set=20defaul?= =?UTF-8?q?t=20WHOIS=20privacy=20status=20on=20domain=E2=80=A6=20(#3286)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/modules/Servicedomain/Service.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/Servicedomain/Service.php b/src/modules/Servicedomain/Service.php index da4f59866..b8bda5ac4 100644 --- a/src/modules/Servicedomain/Service.php +++ b/src/modules/Servicedomain/Service.php @@ -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();