Fix User-> Server edit bug

This commit is contained in:
1day2die 2022-08-13 22:21:55 +02:00
parent 877241d699
commit 66e81ebfcf

View file

@ -227,6 +227,8 @@ class ServerController extends Controller
/** Show Server Settings */
public function show(Server $server)
{
if($server->user_id != Auth::user()->id){ return back()->with('error', __('´This is not your Server!'));
}
$serverAttributes = Pterodactyl::getServerAttributes($server->pterodactyl_id);
$serverRelationships = $serverAttributes['relationships'];
$serverLocationAttributes = $serverRelationships['location']['attributes'];