feat: register the same domain name twice with limited mode

This commit is contained in:
Maël Gangloff
2024-08-04 22:00:20 +02:00
parent c89cd6ce8b
commit de79b2a3ad
3 changed files with 27 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ class DomainRefreshController extends AbstractController
return $domain;
}
if (false === $kernel->isDebug()) {
if (false === $kernel->isDebug() && true === $this->getParameter('limited_features')) {
$limiter = $this->authenticatedApiLimiter->create($userId);
if (false === $limiter->consume()->isAccepted()) {
$this->logger->warning('User {username} was rate limited by the API.', [