misc_pterodactyl-panel/app/Http/Requests/Api/Application/Roles/GetRoleRequest.php
2021-01-23 18:17:35 -07:00

15 lines
318 B
PHP

<?php
namespace Pterodactyl\Http\Requests\Api\Application\Roles;
use Pterodactyl\Models\AdminRole;
class GetRoleRequest extends GetRolesRequest
{
public function resourceExists(): bool
{
$role = $this->route()->parameter('role');
return $role instanceof AdminRole && $role->exists;
}
}