#79127Responsive LiveSearch toolbar item is rendered no matter access restriction
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 8
-
Benjamin Kott changed status
NewAccepted Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2017-05-28T22:04:51+00:00" > 05/28/17, 22:04 </span> -
Oliver Hader changed Tags JavaScript <span data-processor="relativetime" data-value="2017-06-01T12:39:24+00:00" > 06/01/17, 12:39 </span>
-
Susanne Moog changed Complexity medium <span data-processor="relativetime" data-value="2017-07-11T20:10:41+00:00" > 07/11/17, 20:10 </span>
-
Anja Leichsenring changed Sprint Focus
On Location Sprint<span data-processor="relativetime" data-value="2017-08-31T13:45:57+00:00" > 08/31/17, 13:45 </span> -
Benni Mack changed status
AcceptedNeeds Feedback <span data-processor="relativetime" data-value="2021-10-14T11:29:15+00:00" > 10/14/21, 11:29 </span> -
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2024-05-26T15:46:48+00:00" > 05/26/24, 15:46 </span>
Is this one still true on Version 13.2.0-dev?
I performed the following on TYPO3 13.2.0-dev:
1) Create a BE usergroup “Editors” and DO NOT grant it the permission “Modules > Web > List“
2) Create a BE user “Editor” and DO NOT grant it the permission “Modules > Web > List“
3) Assign “Editor” to the group “Editors“
4) Switch BE User to “Editor”Results
- on the top toolbar I don’t see anymore the Search icon
Is it sufficient?
This one looks more like a “Feature request” than a “Bug”, about creating a separate type of permission for the top toolbar items, just as Benni wrote
Correct me if I am wrong, but right now ( 13.2.0-dev) the items on the right corner of the toolbar are:
- Bookmarks
- Clear cache
- Recent Documents
- Workspaces
- Help
- system information
- Livesearch
- (user) (logout/settings/etc)1)
Clear cache
system informationare admin-only
2)
I hardly see the necessity to set up permissions to allow/negate bookmarks, help and recent documents3)
Workspaces shows up only when the user is workspace-aware4)
The (user) must always be presentSo… the permission would just be about the livesearch :/ Or to extend to non-admin users the availability of the “clear cache” icon maybe…
Am I wrong?
-
Benni Mack commented and changed status
Needs FeedbackRejected <span data-processor="relativetime" data-value="2025-04-01T13:36:08+00:00" > 04/01/25, 13:36 </span>Closing the ticket due to lack of feedback after almost a year.
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?