edit cancel method
This commit is contained in:
parent
3ad62dcb35
commit
fdd84ce45e
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue