edit cancel method

This commit is contained in:
Guillaume ARNOUX 2024-01-23 10:27:11 +01:00
parent 3ad62dcb35
commit fdd84ce45e

View file

@ -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);