PteroTheme/app/Http/Requests/Api/Client/Servers/Databases/RotatePasswordRequest.php

18 lines
412 B
PHP

<?php
namespace Pterodactyl\Http\Requests\Api\Client\Servers\Databases;
use Pterodactyl\Models\Permission;
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
class RotatePasswordRequest extends ClientApiRequest
{
/**
* Check that the user has permission to rotate the password.
*/
public function permission(): string
{
return Permission::ACTION_DATABASE_UPDATE;
}
}