Bug #79127
openResponsive LiveSearch toolbar item is rendered no matter access restriction
0%
Description
This is a result of a rather large work on trying to make the TYPO3 backend custom for a project.
The backend layout file Main.html (EXT:backend/Resources/Private/Templates/Backend/Main.html) contains a rendering of a LiveSearchToolbarItem even though a person might not have access
<button class="topbar-button topbar-button-search t3js-topbar-button-search"> <core:icon identifier="actions-search" alternativeMarkupIdentifier="inline" /> </button>
This causes the search to be printed in responsive view. Since you don't have access to the toolbar item (checkAccess() method from ToolbarItemInterface) you don't get a printed LiveSearch to use.
Solution suggestion
This part of ToolbarItem rendering (including the User Settings wrench icon) could be grouped into a viewhelper to render avaialble toolbar items. Perhaps introduce a rendering API for such things (a section in Fluid, or whatever ways the rendering of the backend is going)
Updated by Benjamin Kott almost 7 years ago
- Status changed from New to Accepted
- Sprint Focus set to On Location Sprint
Updated by Anja Leichsenring over 6 years ago
- Sprint Focus deleted (
On Location Sprint)
Updated by Benni Mack over 2 years ago
I guess we'd need to have a separate permission group for toolbar items? Live Search checks if web_list is available and then does not show the search, AFAIK?
Updated by Benni Mack over 2 years ago
- Status changed from Accepted to Needs Feedback