Set out some roach traps to catch all these 🐛

This commit is contained in:
Dane Everitt
2017-02-16 13:56:28 -05:00
parent 336234843d
commit 2e134b7a55
8 changed files with 24 additions and 25 deletions

View File

@@ -181,7 +181,7 @@ class AjaxController extends Controller
}
try {
$allocation = $server->allocations->where('id', $request->input('allocation'))->where('assigned_to', $server->id)->first();
$allocation = $server->allocations->where('id', $request->input('allocation'))->where('server_id', $server->id)->first();
if (! $allocation) {
return response()->json([
'error' => 'No allocation matching your request was found in the system.',