From 92b85a3c965397a9b3cf17210b0e9eaec92ae796 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jasmina=20Lie=C3=9Fmann?= <minapokhalo+typo3@gmail.com>
Date: Mon, 18 Mar 2024 10:12:48 +0100
Subject: [PATCH] [TASK] Align table restriction fields in backend usergroup
 record
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

In order to get a better overview of the selected table restrictions,
the two corresponding fields are placed next to each other.

Resolves: #103413
Releases: main
Change-Id: Idb14eea022b6b6732090e482e2584e8292b10d89
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83500
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com>
Tested-by: core-ci <typo3@b13.com>
---
 typo3/sysext/core/Configuration/TCA/be_groups.php         | 8 +++++++-
 .../core/Resources/Private/Language/locallang_tca.xlf     | 3 +++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/typo3/sysext/core/Configuration/TCA/be_groups.php b/typo3/sysext/core/Configuration/TCA/be_groups.php
index e93fc2dd8a81..0e1398956f5d 100644
--- a/typo3/sysext/core/Configuration/TCA/be_groups.php
+++ b/typo3/sysext/core/Configuration/TCA/be_groups.php
@@ -265,7 +265,7 @@ return [
             --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
                 title,subgroup,
             --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.tabs.base_rights,
-                groupMods, mfa_providers, tables_select, tables_modify, pagetypes_select, non_exclude_fields, explicit_allowdeny, allowed_languages, custom_options,
+                groupMods, mfa_providers, --palette--;;tableRestrictions, pagetypes_select, non_exclude_fields, explicit_allowdeny, allowed_languages, custom_options,
             --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.tabs.mounts_and_workspaces,
                 workspace_perms, db_mountpoints, file_mountpoints, file_permissions, category_perms,
             --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.tabs.options,
@@ -277,4 +277,10 @@ return [
             --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
         '],
     ],
+    'palettes' => [
+        'tableRestrictions' => [
+            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:be_groups.palettes.tableRestrictions',
+            'showitem' => 'tables_select, tables_modify',
+        ],
+    ],
 ];
diff --git a/typo3/sysext/core/Resources/Private/Language/locallang_tca.xlf b/typo3/sysext/core/Resources/Private/Language/locallang_tca.xlf
index 38e63c2b43ac..72dfbcb43378 100644
--- a/typo3/sysext/core/Resources/Private/Language/locallang_tca.xlf
+++ b/typo3/sysext/core/Resources/Private/Language/locallang_tca.xlf
@@ -153,6 +153,9 @@
 			<trans-unit id="be_users.tabs.personal_data" resname="be_users.tabs.personal_data">
 				<source>Personal Data</source>
 			</trans-unit>
+			<trans-unit id="be_groups.palettes.tableRestrictions" resname="be_groups.palettes.tableRestrictions">
+				<source>Table restrictions</source>
+			</trans-unit>
 			<trans-unit id="be_groups.title" resname="be_groups.title">
 				<source>Grouptitle</source>
 			</trans-unit>
-- 
GitLab