#110492Add adminOnly for TCA columns
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
-
Gerrit Code Review pushed patch set 1 for main to change 95343 status
NewUnder Review <span data-processor="relativetime" data-value="2026-08-16T07:34:27+00:00" > 08/16/26, 07:34 </span> -
Gerrit Code Review pushed patch set 2 for main to change 95343 <span data-processor="relativetime" data-value="2026-08-16T07:46:10+00:00" > 08/16/26, 07:46 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 95343 <span data-processor="relativetime" data-value="2026-09-04T06:56:53+00:00" > 09/04/26, 06:56 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 95343 <span data-processor="relativetime" data-value="2026-09-04T07:25:08+00:00" > 09/04/26, 07:25 </span>