Bug #92516

Symfony expressions/conditions doesn't work in user-tsconfig in context menu

Added by Dmitry Dulepov 15 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2020-10-08
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
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.


Related issues

Related to TYPO3 Core - Bug #86229: Symfony expressions/conditions doesn't work in user-tsconfig Closed 2018-09-11
Related to TYPO3 Core - Bug #90075: backend user symfony expressions not working in TSConfig Needs Feedback 2020-01-09

History

#1 Updated by Dmitry Dulepov 15 days ago

  • Related to Bug #86229: Symfony expressions/conditions doesn't work in user-tsconfig added

#2 Updated by Dmitry Dulepov 15 days ago

  • Related to Bug #90075: backend user symfony expressions not working in TSConfig added

Also available in: Atom PDF