Skip to content

Commit

Permalink
TASK: Remove obsolete todo after merge of #5258
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Oct 8, 2024
1 parent 4226dbf commit b86d445
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Neos.Media.Browser/Classes/Controller/UsageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,10 @@ public function relatedNodesAction(AssetInterface $asset)

$workspace = $contentRepository->getWorkspaceFinder()->findOneByName($usage->getWorkspaceName());

// FIXME: AssetUsageReference->workspaceName ?
$nodeAggregate = $contentRepository->getContentGraph($workspace->workspaceName)->findNodeAggregateById(
$usage->getNodeAggregateId()
);
try {
$nodeType = $contentRepository->getNodeTypeManager()->getNodeType($nodeAggregate->nodeTypeName);
} catch (NodeTypeNotFound $e) {
$nodeType = null;
}
$nodeType = $contentRepository->getNodeTypeManager()->getNodeType($nodeAggregate->nodeTypeName);

$accessible = $this->domainUserService->currentUserCanReadWorkspace($workspace);

Expand Down

0 comments on commit b86d445

Please sign in to comment.