Remove account isActive and isFreeze checks from ClientIdSubscriber
This commit is contained in:
parent
92a0e575d4
commit
1daab343e0
@ -66,12 +66,6 @@ class ClientIdSubscriber implements EventSubscriberInterface
|
|||||||
if (null === $account) {
|
if (null === $account) {
|
||||||
throw new AccessDeniedHttpException('ClientId not found');
|
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);
|
$this->moduleManager->setAccount($account);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user