Bug #82755

MenuProcessor does not allow showAccessRestrictedPages

Added by Julien Henchoz about 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2017-10-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

On TYPO3 8.7.8, menus created using the MenuProcessor (TYPO3\CMS\Frontend\DataProcessing\MenuProcessor) do not show pages that have restricted access by default.
A simple solution to be able to configure this would be to make it accept the "showAccessRestrictedPages" property, which is currently not allowed and gives an error message if used.

Example with the added property :

10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
 10 {
   special = list
   special.value.field = pages
   levels = 7
   as = menu
   expandAll = 1
   includeSpacer = 1
   titleField = nav_title // title
   showAccessRestrictedPages = 123
   showAccessRestrictedPages.addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID###
   dataProcessing {
     10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
     10 {
        references.fieldName = media
     }
   }
 }


Files


Related issues

Related to TYPO3 Core - Bug #78321: Bring back the showAccessRestrictedPages to fce menuClosed2016-10-17

Actions
#1

Updated by Stefan Busemann almost 4 years ago

can confirm it

#2

Updated by Frederik Holz almost 4 years ago

I came across the same issue today with my 8.7.10 instance of TYPO3.
MenuProcessor just uses the same Typoscript we all used before this processor so I made a little change to the PHP File to get it working.
The diff is attached as I am time limited atm and cannot start setting up all the necessary accounts and repos to make a proper patch. Maybe someone can have a look at it?

#3

Updated by Gerrit Code Review over 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56834

#4

Updated by Riccardo De Contardi over 3 years ago

  • Related to Bug #78321: Bring back the showAccessRestrictedPages to fce menu added
#5

Updated by Gerrit Code Review over 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56834

#6

Updated by Gerrit Code Review over 3 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56834

#7

Updated by Gerrit Code Review over 3 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57114

#8

Updated by Frederik Holz over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#9

Updated by Benni Mack about 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF