2020-03-27 21:23:13 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client\Servers\Subusers;
|
|
|
|
|
|
|
|
use Pterodactyl\Models\Permission;
|
|
|
|
|
2020-03-27 23:57:49 +00:00
|
|
|
class UpdateSubuserRequest extends SubuserRequest
|
2020-03-27 21:23:13 +00:00
|
|
|
{
|
2022-10-14 16:59:20 +00:00
|
|
|
public function permission(): string
|
2020-03-27 21:23:13 +00:00
|
|
|
{
|
|
|
|
return Permission::ACTION_USER_UPDATE;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function rules(): array
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'permissions' => 'required|array',
|
|
|
|
'permissions.*' => 'string',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|