Project

General

Profile

Actions

Bug #93582

closed

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

Added by S P almost 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
2021-02-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF