Fix User-> Server edit bug
This commit is contained in:
parent
877241d699
commit
66e81ebfcf
|
@ -227,6 +227,8 @@ class ServerController extends Controller
|
||||||
/** Show Server Settings */
|
/** Show Server Settings */
|
||||||
public function show(Server $server)
|
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);
|
$serverAttributes = Pterodactyl::getServerAttributes($server->pterodactyl_id);
|
||||||
$serverRelationships = $serverAttributes['relationships'];
|
$serverRelationships = $serverAttributes['relationships'];
|
||||||
$serverLocationAttributes = $serverRelationships['location']['attributes'];
|
$serverLocationAttributes = $serverRelationships['location']['attributes'];
|
||||||
|
|
Loading…
Reference in a new issue