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 [
],
],
'workspace_perms' => [
'exclude' => 1,
'displayCond' => 'USER:TYPO3\CMS\Core\Hooks\TcaDisplayConditions->isExtensionInstalled:workspaces',
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:workspace_perms',
'config' => [
......@@ -184,7 +183,6 @@ return [
],
],
'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
'config' => [
'type' => 'check',
......
......@@ -164,7 +164,6 @@ return [
],
],
'disable' => [
'exclude' => 1,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
'displayCond' => 'USER:' . \TYPO3\CMS\Core\Hooks\TcaDisplayConditions::class . '->isRecordCurrentUser:false',
'config' => [
......@@ -180,7 +179,6 @@ return [
],
],
'admin' => [
'exclude' => 1,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_users.admin',
'config' => [
'type' => 'check',
......@@ -235,7 +233,6 @@ return [
],
],
'workspace_perms' => [
'exclude' => 1,
'displayCond' => 'USER:TYPO3\CMS\Core\Hooks\TcaDisplayConditions->isExtensionInstalled:workspaces',
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:workspace_perms',
'config' => [
......
......@@ -25,7 +25,6 @@ return [
'columns' => [
'hidden' => [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
'exclude' => true,
'config' => [
'type' => 'check',
'renderType' => 'checkboxToggle',
......@@ -39,7 +38,6 @@ return [
],
],
'starttime' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
'config' => [
'type' => 'datetime',
......@@ -47,7 +45,6 @@ return [
],
],
'endtime' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
'config' => [
'type' => 'datetime',
......
......@@ -228,7 +228,7 @@ class TcaItemsProcessorFunctionsTest extends UnitTestCase
'columns' => [
'bar' => [
'label' => 'barColumnTitle',
'exclude' => 1,
'exclude' => true,
],
'baz' => [
'label' => 'bazColumnTitle',
......
......@@ -24,7 +24,6 @@ return [
'columns' => [
'hidden' => [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
'exclude' => true,
'config' => [
'type' => 'check',
'renderType' => 'checkboxToggle',
......@@ -38,7 +37,6 @@ return [
],
],
'starttime' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
'config' => [
'type' => 'datetime',
......@@ -46,7 +44,6 @@ return [
],
],
'endtime' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
'config' => [
'type' => 'datetime',
......
......@@ -17,21 +17,21 @@ return [
],
'columns' => [
'datetime_text' => [
'exclude' => 1,
'exclude' => true,
'label' => 'type=datetime, db=text',
'config' => [
'type' => 'datetime',
],
],
'datetime_int' => [
'exclude' => 1,
'exclude' => true,
'label' => 'type=datetime, db=int',
'config' => [
'type' => 'datetime',
],
],
'datetime_datetime' => [
'exclude' => 1,
'exclude' => true,
'label' => 'type=datetime, db=datetime',
'config' => [
'type' => 'datetime',
......
......@@ -10,21 +10,21 @@ return [
],
'columns' => [
'datetime_immutable_text' => [
'exclude' => 1,
'exclude' => true,
'label' => 'type=datetime, db=text',
'config' => [
'type' => 'datetime',
],
],
'datetime_immutable_int' => [
'exclude' => 1,
'exclude' => true,
'label' => 'type=datetime, db=int',
'config' => [
'type' => 'datetime',
],
],
'datetime_immutable_datetime' => [
'exclude' => 1,
'exclude' => true,
'label' => 'type=datetime, db=datetime',
'config' => [
'type' => 'datetime',
......
......@@ -40,7 +40,6 @@ return [
],
'hidden' => [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
'exclude' => true,
'config' => [
'type' => 'check',
'renderType' => 'checkboxToggle',
......
......@@ -10,7 +10,7 @@
'columns' => [
't3editor_1' => [
'exclude' => 1,
'exclude' => true,
'label' => 't3editor_1 format=html, rows=7',
'description' => 'field description',
'config' => [
......@@ -21,4 +21,3 @@
],
],
]
\ No newline at end of file
......@@ -131,7 +131,6 @@ return [
],
],
'custom_stages' => [
'exclude' => true,
'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.custom_stages',
'config' => [
'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