mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 13:53:45 +02:00
Set out some roach traps to catch all these 🐛
This commit is contained in:
@@ -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.',
|
||||
|
||||
Reference in New Issue
Block a user