Bug #17952
closedtypolinkLinkAccessRestrictedPages / showAccessRestrictedPages access does not work with "include subpages"
0%
Description
If there is a not access restricted page with a link to a page with is access protected, butnot directly but through the "include subpages" feature of its parent, the typolinkLinkAccessRestrictedPages feature does not work. The link to the is displayed, but not rewritten to the page configured with typolinkLinkAccessRestrictedPages = pid
in order to reproduce create three pages a,b, and c (a parent of b, c child of b)
and access protect b.
Create two links on a, one to b the other to c.
Activate typolinkLinkAccessRestrictedPages and set it to a's pid.
Two links are shown. The "b" link actually links to a but the "c" link does not.
The same applies to menues with showAccessRestrictedPages
this is due to the fact that during the procedure which figures out if the page is access restricted, only the current page is checked for access parameters but not its ancestors.
(issue imported from #M7051)