mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
25 lines
535 B
PHP
25 lines
535 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Api\Client\Servers\Network;
|
|
|
|
use App\Enums\SubuserPermission;
|
|
use App\Http\Requests\Api\Client\ClientApiRequest;
|
|
use App\Models\Allocation;
|
|
|
|
class UpdateAllocationRequest extends ClientApiRequest
|
|
{
|
|
public function permission(): SubuserPermission
|
|
{
|
|
return SubuserPermission::AllocationUpdate;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
$rules = Allocation::getRules();
|
|
|
|
return [
|
|
'notes' => array_merge($rules['notes'], ['present']),
|
|
];
|
|
}
|
|
}
|