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
5 changed files with 56 additions and 81 deletions

View File

@@ -318,7 +318,7 @@ class ServerController extends Controller
}
try {
$repo->$action($id);
$repo->toggleAccess($id, ($action === 'unsuspend'));
return response('', 204);
} catch (DisplayException $ex) {