misc_pterodactyl-panel/app/Http/Requests/Api/Client/Servers/Subusers/UpdateSubuserRequest.php

22 lines
427 B
PHP
Raw Permalink Normal View History

<?php
namespace Pterodactyl\Http\Requests\Api\Client\Servers\Subusers;
use Pterodactyl\Models\Permission;
class UpdateSubuserRequest extends SubuserRequest
{
public function permission(): string
{
return Permission::ACTION_USER_UPDATE;
}
public function rules(): array
{
return [
'permissions' => 'required|array',
'permissions.*' => 'string',
];
}
}