Issue Bug Accepted Orphaned

#15984menu.showAccessRestrictedPages doesn't replace link for "include subpages"

Wolfgang Sassik 04/05/06, 03:07 updated 04/15/26, 09:44

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

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