2019-07-27 23:17:50 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client\Servers\Databases;
|
|
|
|
|
2020-03-22 22:31:25 +00:00
|
|
|
use Pterodactyl\Models\Permission;
|
2019-07-27 23:17:50 +01:00
|
|
|
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
|
|
|
|
|
|
|
|
class RotatePasswordRequest extends ClientApiRequest
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Check that the user has permission to rotate the password.
|
|
|
|
*/
|
2020-03-22 22:31:25 +00:00
|
|
|
public function permission(): string
|
2019-07-27 23:17:50 +01:00
|
|
|
{
|
2020-03-22 22:31:25 +00:00
|
|
|
return Permission::ACTION_DATABASE_UPDATE;
|
2019-07-27 23:17:50 +01:00
|
|
|
}
|
|
|
|
}
|