Issue Bug Closed

#93582filter methods of TCA type group are not evaluated for non-admins in Element Browser

S P 02/24/21, 10:24 updated 03/18/22, 21:03

Description

Defining a filter for a group field, like this:

'filter' => [
    ['userFunc' => \Vendor\Package\FilterClass::class . '->filter']
]

According to the documentation the filtering has to happen always in the Element Browser (and the DataHandler):
https://docs.typo3.org/m/typo3/reference-tca/9.5/en-us/ColumnsConfig/Type/Group.html#filter

However, the filter is only evaluated in DataHandler for all users. The evaluation of the filter in the Element Browser happens only for admin users and is totally ignored for non-admins.

To test: just put a syntax error in the filter method -> for admins opening the element browser will give a 500, for non-admins it loads without filter.

In my case I only allow table pages, if this is relevant.

Discovered in v9, probably relevant for 10+ as well.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.