Fix server deletion logic, and clean up suspend/unsuspend operations

This commit is contained in:
Dane Everitt 2017-04-17 20:16:05 -04:00
parent bdfab16af3
commit de923bbb83
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 56 additions and 81 deletions

View file

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