fix: correct limitations

This commit is contained in:
Maël Gangloff
2024-08-15 04:12:38 +02:00
parent 64bc4ac172
commit 34c7c9cdb4

View File

@@ -78,7 +78,7 @@ class WatchListController extends AbstractController
}
$userWatchLists = $user->getWatchLists();
if ($userWatchLists->count() > (int) $this->getParameter('limit_max_watchlist')) {
if ($userWatchLists->count() >= (int) $this->getParameter('limit_max_watchlist')) {
$this->logger->notice('User {username} tried to create a Watchlist. However, the maximum number of Watchlists has been reached.', [
'username' => $user->getUserIdentifier(),
]);