From 1daab343e00dffdcdbc3530440a10e020063860b Mon Sep 17 00:00:00 2001 From: gridnev Date: Thu, 9 Jul 2020 17:20:59 +0300 Subject: [PATCH] Remove account isActive and isFreeze checks from ClientIdSubscriber --- EventSubscriber/ClientIdSubscriber.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/EventSubscriber/ClientIdSubscriber.php b/EventSubscriber/ClientIdSubscriber.php index f6e6439..47193e7 100644 --- a/EventSubscriber/ClientIdSubscriber.php +++ b/EventSubscriber/ClientIdSubscriber.php @@ -66,12 +66,6 @@ class ClientIdSubscriber implements EventSubscriberInterface if (null === $account) { throw new AccessDeniedHttpException('ClientId not found'); } - if (!$account->isActive()) { - throw new AccessDeniedHttpException('Account is not active'); - } - if ($account->isFreeze()) { - throw new AccessDeniedHttpException('Account is freezed'); - } $this->moduleManager->setAccount($account); }