2022-12-15 00:05:46 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Application\Roles;
|
|
|
|
|
|
|
|
use Pterodactyl\Models\AdminRole;
|
|
|
|
|
|
|
|
class UpdateRoleRequest extends StoreRoleRequest
|
|
|
|
{
|
|
|
|
public function rules(array $rules = null): array
|
|
|
|
{
|
2022-12-15 01:04:16 +00:00
|
|
|
return $rules ?? AdminRole::getRulesForUpdate($this->route()->parameter('role'));
|
2022-12-15 00:05:46 +00:00
|
|
|
}
|
|
|
|
}
|