fancyAdmin = $fancyAdmin; } protected function validateIdentity(Identity $identity, ?string $context = null, array $metadata = []): void { /** @var \ADT\FancyAdmin\Model\Entities\Identity $identity */ if ( !$identity->isAllowed($this->fancyAdmin->getCustomerAclResource()) && !$identity->isAllowed($this->fancyAdmin->getBackofficeAclResource()) ) { throw new AuthenticationException('Nemáte oprávnění pro přihlášení'); } } }