misc_pterodactyl-panel/app/Http/Requests/Api/Application/Users/GetUserRequest.php

16 lines
308 B
PHP
Raw Normal View History

2021-01-04 18:50:43 +00:00
<?php
namespace Pterodactyl\Http\Requests\Api\Application\Users;
use Pterodactyl\Models\User;
class GetUserRequest extends GetUsersRequest
{
public function resourceExists(): bool
{
$user = $this->route()->parameter('user');
return $user instanceof User && $user->exists;
}
}