#92516Symfony expressions/conditions doesn't work in user-tsconfig in context menu
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.
Reviews 2
Related issues 4
History 813
-
Dmitry Dulepov changed Related to #86229 <span data-processor="relativetime" data-value="2020-10-08T12:51:28+00:00" > 10/08/20, 12:51 </span>
-
Dmitry Dulepov changed Related to #90075 <span data-processor="relativetime" data-value="2020-10-08T12:51:51+00:00" > 10/08/20, 12:51 </span>
-
Simon Schaufelberger commented and changed category Complexity hard <span data-processor="relativetime" data-value="2022-04-26T21:12:27+00:00" > 04/26/22, 21:12 </span>
-
Dmitry Dulepov commented <span data-processor="relativetime" data-value="2022-04-27T10:19:39+00:00" > 04/27/22, 10:19 </span>
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")]. -
Georg Ringer changed Related to #98588 <span data-processor="relativetime" data-value="2024-06-11T21:10:25+00:00" > 06/11/24, 21:10 </span>
-
Georg Ringer changed Related to #100981 <span data-processor="relativetime" data-value="2025-03-31T15:23:27+00:00" > 03/31/25, 15:23 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 95727 status
NewUnder Review <span data-processor="relativetime" data-value="2026-09-08T14:05:29+00:00" > 09/08/26, 14:05 </span> -
Gerrit Code Review pushed patch set 1 for 14.3 to change 95760 <span data-processor="relativetime" data-value="2026-09-10T12:08:44+00:00" > 09/10/26, 12:08 </span>
-
Gerrit Code Review pushed patch set 2 for 14.3 to change 95760 <span data-processor="relativetime" data-value="2026-09-10T12:46:01+00:00" > 09/10/26, 12:46 </span>
-
Gerrit Code Review pushed patch set 3 for 14.3 to change 95760 <span data-processor="relativetime" data-value="2026-09-10T13:00:10+00:00" > 09/10/26, 13:00 </span>
-
Benni Mack commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-09-11T13:00:15+00:00" > 09/11/26, 13:00 </span>Applied in changeset commit:1f09add64fbb5143f947bc33a0ff4072ec141341.
-
Gerrit Code Review pushed patch set 2 for main to change 95727 status
ResolvedUnder Review <span data-processor="relativetime" data-value="2026-10-01T21:25:56+00:00" > 10/01/26, 21:25 </span> -
Benni Mack commented and changed status
Under ReviewResolved <span data-processor="relativetime" data-value="2026-10-02T10:35:10+00:00" > 10/02/26, 10:35 </span>Applied in changeset commit:2bcd72c014de2c6f263e41b396f9abacccacc1d0.
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.