2019-11-03 12:20:11 -08:00
|
|
|
<?php
|
|
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2019-11-03 12:20:11 -08:00
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client\Servers\Subusers;
|
|
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
use Pterodactyl\Enum\Permissions;
|
2019-11-03 12:20:11 -08:00
|
|
|
|
2020-03-27 16:57:49 -07:00
|
|
|
class GetSubuserRequest extends SubuserRequest
|
2019-11-03 12:20:11 -08:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Confirm that a user is able to view subusers for the specified server.
|
|
|
|
|
*/
|
2020-03-22 15:31:25 -07:00
|
|
|
public function permission(): string
|
2019-11-03 12:20:11 -08:00
|
|
|
{
|
2026-10-05 18:10:18 -04:00
|
|
|
return Permissions::UserRead->value;
|
2019-11-03 12:20:11 -08:00
|
|
|
}
|
|
|
|
|
}
|