#15984menu.showAccessRestrictedPages doesn't replace link for "include subpages"
Description
When creating a menu with showAccessRestrictedPages set to any PID, links to pages that inherit a usergroup restriction (“include subpages” set on a parent page) won’t be substituted.
function changeLinksForAccessRestrictedPages(..) @ class.tslib_menu.php is calling $GLOBALS[‘TSFE’]->checkPageGroupAccess($page) which itself does not traverse the pagetree to check if a parent page has the field “extendToSubpages” set true.
Same problem may occour when using config.typolinkLinkAccessRestrictedPages for typolinks, but I have not tried yet.
(issue imported from #M3129)
Reviews 3
- main 1186[BUGFIX] showAccessRestrictedPages doesn't replace links to restricted subpages
- TYPO3_4-5 2545[BUGFIX] showAccessRestrictedPages doesn't replace links to restricted subpages
- TYPO3_4-5 2544[BUGFIX] showAccessRestrictedPages doesn't replace links to restricted subpages
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". The changes above were merged or abandoned: read them before you start. How to create a patch
- Commit message
-
[BUGFIX] menu.showAccessRestrictedPages doesn't replace link for "include subpages" Resolves: #15984 Releases: main