From fdd84ce45e7da9faa9b648dac4bc6ee1dc19a61e Mon Sep 17 00:00:00 2001 From: Guillaume ARNOUX Date: Tue, 23 Jan 2024 10:27:11 +0100 Subject: [PATCH] edit cancel method --- src/Mailcow.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Mailcow.php b/src/Mailcow.php index 9548207..aed421e 100644 --- a/src/Mailcow.php +++ b/src/Mailcow.php @@ -297,14 +297,18 @@ class Server_Manager_Mailcow extends Server_Manager "adm_" . str_replace(".", "", $a->getDomain()), ] ]; - $result2 = $this->_makeRequest('POST', 'delete/domain-admin', $domainAdminData); + /* + * NOTE : THE DOMAIN ADMIN SEEMS TO BE DELETE WHEN DELETEING DOMAIN + * + * $result2 = $this->_makeRequest('POST', 'delete/domain-admin', $domainAdminData); if (! str_contains($result2, 'success')) { $placeholders = [':action:' => __trans('delete domain'), ':type:' => 'Mailcow']; throw new Server_Exception('Failed to :action: on the :type: server, check the error logs for further details', $placeholders); - } } else { + } */ + } else { $placeholders = [':action:' => __trans('delete user'), ':type:' => 'Mailcow']; throw new Server_Exception('Failed to :action: on the :type: server, check the error logs for further details', $placeholders);