[BUGFIX] Make showAccessRestrictedPages work
This patch fixes a problem where setting showAccessRestrictedPages setting in HMENU etc. did not result in the correct behavior according to documentation at https://docs.typo3.org/typo3cms/TyposcriptReference/MenuObjects/CommonProperties/Index.html. The patch changes the behavior caused by using `NONE` as keyword in the setting. Before: using the option renders `<a>Page title</a>` when page is inaccessible. After: using the option renders `<a href="index.php?id=123">Page title</a>` when page is not accessible. Change-Id: I4364f7ec9f44e1e0b70654830efc236f20e6bf30 Resolves: #17904 Releases: master, 7.6 Reviewed-on: https://review.typo3.org/50696 Reviewed-by:Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
TYPO3com <no-reply@typo3.com> Reviewed-by:
Jan Helke <typo3@helke.de> Tested-by:
Jan Helke <typo3@helke.de>
Showing
- typo3/sysext/core/Documentation/Changelog/master/Important-17904-ShowAccessRestrictedPagesDoesNotWorkWithSpecialMenus.rst 19 additions, 0 deletions...-ShowAccessRestrictedPagesDoesNotWorkWithSpecialMenus.rst
- typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php 2 additions, 2 deletions.../Classes/ContentObject/Menu/AbstractMenuContentObject.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php 249 additions, 0 deletions...Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php
Please register or sign in to comment