We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f20108e commit d7b2d33Copy full SHA for d7b2d33
Classes/Controller/BackendController.php
@@ -221,6 +221,9 @@ protected function getSiteNodeForLoggedInUser(): ?NodeInterface
221
protected function findNodeToEdit(): ?NodeInterface
222
{
223
$siteNode = $this->getSiteNodeForLoggedInUser();
224
+ if (!$siteNode) {
225
+ throw new \RuntimeException('Could not find site node for current user.', 1697707361);
226
+ }
227
$reflectionMethod = new \ReflectionMethod($this->backendRedirectionService, 'getLastVisitedNode');
228
$reflectionMethod->setAccessible(true);
229
$node = $reflectionMethod->invoke($this->backendRedirectionService, $siteNode->getContext()->getWorkspaceName());
0 commit comments