mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 03:45:53 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
21 lines
530 B
PHP
21 lines
530 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client\Servers\Databases;
|
|
|
|
use Pterodactyl\Contracts\Http\ClientPermissionsRequest;
|
|
use Pterodactyl\Enum\Permissions;
|
|
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
|
|
|
|
class RotatePasswordRequest extends ClientApiRequest implements ClientPermissionsRequest
|
|
{
|
|
/**
|
|
* Check that the user has permission to rotate the password.
|
|
*/
|
|
public function permission(): string
|
|
{
|
|
return Permissions::DatabaseUpdate->value;
|
|
}
|
|
}
|