Skip to content
Snippets Groups Projects
Commit 6a172f67 authored by Marcin Sągol's avatar Marcin Sągol Committed by Oliver Bartsch
Browse files

[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: default avatarMarcin Sągol <marcin@soee.pl>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarMarcin Sągol <marcin@soee.pl>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 56c19a95
Branches
Tags
No related merge requests found
Showing
with 745 additions and 27 deletions
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