mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: correct limitations
This commit is contained in:
@@ -78,7 +78,7 @@ class WatchListController extends AbstractController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$userWatchLists = $user->getWatchLists();
|
$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.', [
|
$this->logger->notice('User {username} tried to create a Watchlist. However, the maximum number of Watchlists has been reached.', [
|
||||||
'username' => $user->getUserIdentifier(),
|
'username' => $user->getUserIdentifier(),
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user