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
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function permission()
|
|
|
|
{
|
|
|
|
return Permission::ACTION_USER_UPDATE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function rules(): array
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'permissions' => 'required|array',
|
|
|
|
'permissions.*' => 'string',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|