public function hasAccess(string $privilegeTarget, array $parameters = []): bool
    {
        if (!$this->securityContext->canBeInitialized()) {
            return false;
        }
        return $this->privilegeManager->isPrivilegeTargetGranted($privilegeTarget, $parameters);
    }