Issue Feature Under Review Stale

#110492Add adminOnly for TCA columns

Daniel Windloff 08/16/26, 06:32 updated 09/04/26, 07:25

Description

For TCA tables, there exists a condition to be only persistent for admin users
(see https://docs.typo3.org/m/typo3/reference-tca/main/en-us/Ctrl/#confval-ctrl-adminonly).
For TCA’s columns, this option has been only partly available.

Currently, the displayCond HIDE_FOR_NON_ADMINS has been used to forbid the persistence for a column in DataHandler.

The implementation has the following downsites:
- It is unexpected to evaluate a display condition in persistence rather than in form generation
- It works only if it is the only display condition. Using AND will not forbit persistence in DataHandler. This leads to inconsistent behavior, as a stronger condition have less effect.

Therefore, I suggest adding `adminOnly` for columns as a bool option and removing displayCond evaluation from DataHandler.

This would lead to a clear seperation:
- displayConds have no effect on persistence anymore.
- adminOnly effects persistence and display in form

Reviews 1

History 04