mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Complete move from old repository to new repository structure!
This commit is contained in:
@@ -84,7 +84,7 @@ class SubuserDeletionService
|
||||
*/
|
||||
public function handle($subuser)
|
||||
{
|
||||
$subuser = $this->repository->getWithServerAndPermissions($subuser);
|
||||
$subuser = $this->repository->getWithServer($subuser);
|
||||
|
||||
$this->connection->beginTransaction();
|
||||
$response = $this->repository->delete($subuser->id);
|
||||
@@ -97,9 +97,9 @@ class SubuserDeletionService
|
||||
return $response;
|
||||
} catch (RequestException $exception) {
|
||||
$this->connection->rollBack();
|
||||
$response = $exception->getResponse();
|
||||
$this->writer->warning($exception);
|
||||
|
||||
$response = $exception->getResponse();
|
||||
throw new DisplayException(trans('admin/exceptions.daemon_connection_failed', [
|
||||
'code' => is_null($response) ? 'E_CONN_REFUSED' : $response->getStatusCode(),
|
||||
]));
|
||||
|
||||
Reference in New Issue
Block a user