Bug #92516
openSymfony expressions/conditions doesn't work in user-tsconfig in context menu
0%
Description
This is the same as resolved https://forge.typo3.org/issues/86229 but appliues to the context menu only in the page tree.
How to reproduce¶
Install EXT:impexp (composer: typo3/cms-impexp)
Have the following in User TSConfig:
[!backend.user.isAdmin] options.contextMenu { table { virtual_root.tree.disableItems := addToList(importT3d,exportT3d) pages_root.tree.disableItems := addToList(importT3d,exportT3d) pages.tree.disableItems := addToList(importT3d,exportT3d) } }
The condition will work fine anywhere except when the page tree is clicked to show the context menu. In that case the user will not be detected because user context is initialized before the Backend user itself.
As a result, import export will not be shown for admin user in the context menu.
Updated by Dmitry Dulepov about 4 years ago
- Related to Bug #86229: Symfony expressions/conditions doesn't work in user-tsconfig added
Updated by Dmitry Dulepov about 4 years ago
- Related to Bug #90075: backend user symfony expressions not working in TSConfig added
Updated by Simon Schaufelberger over 2 years ago
- Category changed from Backend API to TypoScript
- Complexity set to hard
I think conditions in general don't work in TSConfig. The solution is to set different configs in different backend user groups and then assign the users to the appropriate user group.
Updated by Dmitry Dulepov over 2 years ago
In general they did work, do work and should work. This functionality is there for ages but now it has newer syntax.
Like [4 in tree.rootLineIds]
or [page["backend_layout"] == "pagets__Home"]
or [usergroup("1")]
.
Updated by Georg Ringer 5 months ago
- Related to Bug #98588: Condition for colpos not working in PageTSConfig added