[FEATURE] Combine be_groups table permission read & write UI
The `tables_select` and `tables_modify` lists have the same items listed, so instead of managing them through separate views, the merges them into a single view. The new (merged) table renders the three options "No Access", "Read" and "Read & Write" for each table. Those options are accompanied by the multi record selection options to "Check All", "Uncheck All" and to "Toggle Selection". To render this new table view and handle its behavior, a dedicated form renderType `tablePermission` is introduced, which is now set for the `tables_modify` column. The `tables_select` column has been changed to TCA type `passthrough`. The new form element is defined through: `\TYPO3\CMS\Backend\Form\Element\TablePermissionElement`. It uses a dedicated data provider defined in: `\TYPO3\CMS\Backend\Form\FormDataProvider\TcaTablePermission`. The JavaScript code is handled by a new web component: `@typo3/backend/form-engine/element/table-permission-element.js`. When the TcaTablePermission data provider handles the configuration, it reads table lists from both the `tables_select` and `tables_modify` columns and combines them into a single array with unique table names. Resolves: #103521 Releases: main Change-Id: Iae468d9209d346ef09fd34053cdcd2d1a8ef1f2c Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83743 Reviewed-by:Marcin Sągol <marcin@soee.pl> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Marcin Sągol <marcin@soee.pl> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- Build/Sources/Sass/component/_table.scss 2 additions, 1 deletionBuild/Sources/Sass/component/_table.scss
- Build/Sources/TypeScript/backend/form-engine/element/table-permission-element.ts 99 additions, 0 deletions...t/backend/form-engine/element/table-permission-element.ts
- typo3/sysext/backend/Classes/Form/Element/TablePermissionElement.php 270 additions, 0 deletions...t/backend/Classes/Form/Element/TablePermissionElement.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaTablePermission.php 55 additions, 0 deletions...kend/Classes/Form/FormDataProvider/TcaTablePermission.php
- typo3/sysext/backend/Classes/Form/NodeFactory.php 1 addition, 0 deletionstypo3/sysext/backend/Classes/Form/NodeFactory.php
- typo3/sysext/backend/Resources/Public/Css/backend.css 1 addition, 1 deletiontypo3/sysext/backend/Resources/Public/Css/backend.css
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/table-permission-element.js 13 additions, 0 deletions...avaScript/form-engine/element/table-permission-element.js
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTablePermissionTest.php 204 additions, 0 deletions...sts/Unit/Form/FormDataProvider/TcaTablePermissionTest.php
- typo3/sysext/core/Configuration/DefaultConfiguration.php 12 additions, 2 deletionstypo3/sysext/core/Configuration/DefaultConfiguration.php
- typo3/sysext/core/Configuration/TCA/be_groups.php 5 additions, 16 deletionstypo3/sysext/core/Configuration/TCA/be_groups.php
- typo3/sysext/core/Documentation/Changelog/13.3/Feature-103521-ChangeTableRestrictionsUiToCombineReadAndWritePermissions.rst 65 additions, 0 deletions...geTableRestrictionsUiToCombineReadAndWritePermissions.rst
- typo3/sysext/core/Resources/Private/Language/locallang_tca.xlf 13 additions, 7 deletions.../sysext/core/Resources/Private/Language/locallang_tca.xlf
- typo3/sysext/core/ext_tables.sql 5 additions, 0 deletionstypo3/sysext/core/ext_tables.sql
Please register or sign in to comment