diff --git a/Neos.Neos/Classes/Controller/Backend/MenuHelper.php b/Neos.Neos/Classes/Controller/Backend/MenuHelper.php index 5f9b0415c9c..4c9988e3916 100644 --- a/Neos.Neos/Classes/Controller/Backend/MenuHelper.php +++ b/Neos.Neos/Classes/Controller/Backend/MenuHelper.php @@ -87,10 +87,15 @@ public function buildSiteList(ControllerContext $controllerContext): array $domainsFound = false; $sites = []; foreach ($this->siteRepository->findOnline() as $site) { - // TODO: we need to check permissions here, a.k.a - // TODO: $node = $context->getNode(\Neos\ContentRepository\Domain\Utility\NodePaths::addNodePathSegment(SiteService::SITES_ROOT_PATH, $site->getNodeName())); - // TODO: if ($this->privilegeManager->isGranted(NodeTreePrivilege::class, new NodePrivilegeSubject($node))) { - // TODO: unfortunately, it's not so easy; because we do not know what dimension we are in... + // TODO: we need to check permissions here see https://github.com/neos/neos-development-collection/pull/4269 + /* + foreach ($siteNodesInAllDimensions as $siteNode) { + if ($this->privilegeManager->isGranted(NodeTreePrivilege::class, new NodePrivilegeSubject($siteNode))) { + $granted = true; + break; + } + } + */ $uri = null; $active = false; /** @var $site Site */