Skip to content

Commit

Permalink
BUGFIX: show hidden pages in backend selection
Browse files Browse the repository at this point in the history
  • Loading branch information
skurfuerst committed Feb 9, 2021
1 parent 28ad554 commit 4424670
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Classes/Service/DynamicRoleEditorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -67,6 +68,11 @@ class DynamicRoleEditorService
*/
protected $nodeTreeLoadingDepth;

/**
* @Flow\Inject
* @var UserService
*/
protected $userService;

public function generatePropsForReactWidget(ActionRequest $actionRequest, ?MatcherConfiguration $dynamicRoleMatcherConfiguration): string
{
Expand Down Expand Up @@ -144,7 +150,7 @@ protected function getDimensionPresets()
public function getSiteNode(): NodeInterface
{
$context = $this->contextFactory->create([
'workspaceName' => 'live'
'workspaceName' => $this->userService->getPersonalWorkspaceName()
]);

return $context->getCurrentSiteNode();
Expand Down

0 comments on commit 4424670

Please sign in to comment.