Commit a952926a authored by Georg Ringer's avatar Georg Ringer Committed by Stefan Bürk
Browse files

[TASK] Cleanup usage of exclude configuration

- Remove it for tables using adminOnly
- Replace with true if set to 1

Resolves: #97575
Releases: main
Change-Id: I216ea31edc0c8621890a348a239e7d128154370d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74578

Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
parent 109ba6f6
...@@ -107,7 +107,6 @@ return [ ...@@ -107,7 +107,6 @@ return [
], ],
], ],
'workspace_perms' => [ 'workspace_perms' => [
'exclude' => 1,
'displayCond' => 'USER:TYPO3\CMS\Core\Hooks\TcaDisplayConditions->isExtensionInstalled:workspaces', 'displayCond' => 'USER:TYPO3\CMS\Core\Hooks\TcaDisplayConditions->isExtensionInstalled:workspaces',
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:workspace_perms', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:workspace_perms',
'config' => [ 'config' => [
...@@ -184,7 +183,6 @@ return [ ...@@ -184,7 +183,6 @@ return [
], ],
], ],
'hidden' => [ 'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
'config' => [ 'config' => [
'type' => 'check', 'type' => 'check',
......
...@@ -164,7 +164,6 @@ return [ ...@@ -164,7 +164,6 @@ return [
], ],
], ],
'disable' => [ 'disable' => [
'exclude' => 1,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
'displayCond' => 'USER:' . \TYPO3\CMS\Core\Hooks\TcaDisplayConditions::class . '->isRecordCurrentUser:false', 'displayCond' => 'USER:' . \TYPO3\CMS\Core\Hooks\TcaDisplayConditions::class . '->isRecordCurrentUser:false',
'config' => [ 'config' => [
...@@ -180,7 +179,6 @@ return [ ...@@ -180,7 +179,6 @@ return [
], ],
], ],
'admin' => [ 'admin' => [
'exclude' => 1,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.admin', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.admin',
'config' => [ 'config' => [
'type' => 'check', 'type' => 'check',
...@@ -235,7 +233,6 @@ return [ ...@@ -235,7 +233,6 @@ return [
], ],
], ],
'workspace_perms' => [ 'workspace_perms' => [
'exclude' => 1,
'displayCond' => 'USER:TYPO3\CMS\Core\Hooks\TcaDisplayConditions->isExtensionInstalled:workspaces', 'displayCond' => 'USER:TYPO3\CMS\Core\Hooks\TcaDisplayConditions->isExtensionInstalled:workspaces',
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:workspace_perms', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:workspace_perms',
'config' => [ 'config' => [
......
...@@ -25,7 +25,6 @@ return [ ...@@ -25,7 +25,6 @@ return [
'columns' => [ 'columns' => [
'hidden' => [ 'hidden' => [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
'exclude' => true,
'config' => [ 'config' => [
'type' => 'check', 'type' => 'check',
'renderType' => 'checkboxToggle', 'renderType' => 'checkboxToggle',
...@@ -39,7 +38,6 @@ return [ ...@@ -39,7 +38,6 @@ return [
], ],
], ],
'starttime' => [ 'starttime' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
'config' => [ 'config' => [
'type' => 'datetime', 'type' => 'datetime',
...@@ -47,7 +45,6 @@ return [ ...@@ -47,7 +45,6 @@ return [
], ],
], ],
'endtime' => [ 'endtime' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
'config' => [ 'config' => [
'type' => 'datetime', 'type' => 'datetime',
......
...@@ -228,7 +228,7 @@ class TcaItemsProcessorFunctionsTest extends UnitTestCase ...@@ -228,7 +228,7 @@ class TcaItemsProcessorFunctionsTest extends UnitTestCase
'columns' => [ 'columns' => [
'bar' => [ 'bar' => [
'label' => 'barColumnTitle', 'label' => 'barColumnTitle',
'exclude' => 1, 'exclude' => true,
], ],
'baz' => [ 'baz' => [
'label' => 'bazColumnTitle', 'label' => 'bazColumnTitle',
......
...@@ -24,7 +24,6 @@ return [ ...@@ -24,7 +24,6 @@ return [
'columns' => [ 'columns' => [
'hidden' => [ 'hidden' => [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
'exclude' => true,
'config' => [ 'config' => [
'type' => 'check', 'type' => 'check',
'renderType' => 'checkboxToggle', 'renderType' => 'checkboxToggle',
...@@ -38,7 +37,6 @@ return [ ...@@ -38,7 +37,6 @@ return [
], ],
], ],
'starttime' => [ 'starttime' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
'config' => [ 'config' => [
'type' => 'datetime', 'type' => 'datetime',
...@@ -46,7 +44,6 @@ return [ ...@@ -46,7 +44,6 @@ return [
], ],
], ],
'endtime' => [ 'endtime' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
'config' => [ 'config' => [
'type' => 'datetime', 'type' => 'datetime',
......
...@@ -17,21 +17,21 @@ return [ ...@@ -17,21 +17,21 @@ return [
], ],
'columns' => [ 'columns' => [
'datetime_text' => [ 'datetime_text' => [
'exclude' => 1, 'exclude' => true,
'label' => 'type=datetime, db=text', 'label' => 'type=datetime, db=text',
'config' => [ 'config' => [
'type' => 'datetime', 'type' => 'datetime',
], ],
], ],
'datetime_int' => [ 'datetime_int' => [
'exclude' => 1, 'exclude' => true,
'label' => 'type=datetime, db=int', 'label' => 'type=datetime, db=int',
'config' => [ 'config' => [
'type' => 'datetime', 'type' => 'datetime',
], ],
], ],
'datetime_datetime' => [ 'datetime_datetime' => [
'exclude' => 1, 'exclude' => true,
'label' => 'type=datetime, db=datetime', 'label' => 'type=datetime, db=datetime',
'config' => [ 'config' => [
'type' => 'datetime', 'type' => 'datetime',
......
...@@ -10,21 +10,21 @@ return [ ...@@ -10,21 +10,21 @@ return [
], ],
'columns' => [ 'columns' => [
'datetime_immutable_text' => [ 'datetime_immutable_text' => [
'exclude' => 1, 'exclude' => true,
'label' => 'type=datetime, db=text', 'label' => 'type=datetime, db=text',
'config' => [ 'config' => [
'type' => 'datetime', 'type' => 'datetime',
], ],
], ],
'datetime_immutable_int' => [ 'datetime_immutable_int' => [
'exclude' => 1, 'exclude' => true,
'label' => 'type=datetime, db=int', 'label' => 'type=datetime, db=int',
'config' => [ 'config' => [
'type' => 'datetime', 'type' => 'datetime',
], ],
], ],
'datetime_immutable_datetime' => [ 'datetime_immutable_datetime' => [
'exclude' => 1, 'exclude' => true,
'label' => 'type=datetime, db=datetime', 'label' => 'type=datetime, db=datetime',
'config' => [ 'config' => [
'type' => 'datetime', 'type' => 'datetime',
......
...@@ -40,7 +40,6 @@ return [ ...@@ -40,7 +40,6 @@ return [
], ],
'hidden' => [ 'hidden' => [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
'exclude' => true,
'config' => [ 'config' => [
'type' => 'check', 'type' => 'check',
'renderType' => 'checkboxToggle', 'renderType' => 'checkboxToggle',
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
'columns' => [ 'columns' => [
't3editor_1' => [ 't3editor_1' => [
'exclude' => 1, 'exclude' => true,
'label' => 't3editor_1 format=html, rows=7', 'label' => 't3editor_1 format=html, rows=7',
'description' => 'field description', 'description' => 'field description',
'config' => [ 'config' => [
...@@ -21,4 +21,3 @@ ...@@ -21,4 +21,3 @@
], ],
], ],
] ]
\ No newline at end of file
...@@ -131,7 +131,6 @@ return [ ...@@ -131,7 +131,6 @@ return [
], ],
], ],
'custom_stages' => [ 'custom_stages' => [
'exclude' => true,
'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.custom_stages', 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.custom_stages',
'config' => [ 'config' => [
'type' => 'inline', 'type' => 'inline',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment