Fix server deletion logic, and clean up suspend/unsuspend operations
This commit is contained in:
parent
bdfab16af3
commit
de923bbb83
5 changed files with 56 additions and 81 deletions
|
@ -367,7 +367,7 @@ class ServersController extends Controller
|
|||
}
|
||||
|
||||
try {
|
||||
$repo->$action($id);
|
||||
$repo->toggleAccess($id, ($action === 'unsuspend'));
|
||||
|
||||
Alert::success('Server has been ' . $action . 'ed.');
|
||||
} catch (TransferException $ex) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue