15 lines
308 B
PHP
15 lines
308 B
PHP
<?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;
|
|
}
|
|
}
|