Actions
Bug #92516
openSymfony expressions/conditions doesn't work in user-tsconfig in context menu
Status:
New
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2020-10-08
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
hard
Is Regression:
Sprint Focus:
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.
Actions