From 4424670996f5fb61c86b1bf74dccf50995fe6dde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kurf=C3=BCrst?= Date: Tue, 9 Feb 2021 14:59:53 +0100 Subject: [PATCH] BUGFIX: show hidden pages in backend selection --- Classes/Service/DynamicRoleEditorService.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Classes/Service/DynamicRoleEditorService.php b/Classes/Service/DynamicRoleEditorService.php index b2fb178..771a284 100644 --- a/Classes/Service/DynamicRoleEditorService.php +++ b/Classes/Service/DynamicRoleEditorService.php @@ -16,6 +16,7 @@ use Neos\Flow\Security\Context; use Neos\ContentRepository\Domain\Model\NodeInterface; use Neos\ContentRepository\Domain\Service\ContextFactoryInterface; +use Neos\Neos\Service\UserService; use Sandstorm\NeosAcl\Domain\Dto\MatcherConfiguration; /** @@ -67,6 +68,11 @@ class DynamicRoleEditorService */ protected $nodeTreeLoadingDepth; + /** + * @Flow\Inject + * @var UserService + */ + protected $userService; public function generatePropsForReactWidget(ActionRequest $actionRequest, ?MatcherConfiguration $dynamicRoleMatcherConfiguration): string { @@ -144,7 +150,7 @@ protected function getDimensionPresets() public function getSiteNode(): NodeInterface { $context = $this->contextFactory->create([ - 'workspaceName' => 'live' + 'workspaceName' => $this->userService->getPersonalWorkspaceName() ]); return $context->getCurrentSiteNode();