Bug #106356
openWorkspace Preview for restricted pages not working
0%
Description
Trying to preview a (fe-group-)restricted page in a workspace will always show the root page instead of the selected page.
Steps to reproduce:
1. Create a page and restrict it to a fe-group
2. Switch to a non-LIVE workspace
3. Click "View webpage" for the previously restricted page
Expected Result:
The restricted page is displayed.
Actual Result:
The root-page of the current site is displayed.
Updated by Roman Schilter 13 days ago
The PreviewController generates the uri using the PageRouter, which in turn uses the PageRepository to fetch the page (see https://github.com/typo3/typo3/blob/f6b1178d4e8a25704223c3ebd1f0bf9e0f1faddb/typo3/sysext/core/Classes/Routing/PageRouter.php#L274).
This page is empty in this case.
The reason is because in the PageRepository in the function versionOL the access is checked again.
It works when the parameter $bypassEnableFieldsCheck for versionOL is set to true.