Project

General

Profile

Actions

Bug #100707

open

Web>List only applies list_type restriction if this column is shown to show "controls"

Added by Ernesto Baschny over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2023-04-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The ACL explicit_allowdeny allows to restrict an editor to certain plugin types (field list_type):

If an admin creates a plugin of a certain list_type which is not allowed by the editor, in Web>List module the editor will still see the "controls" which would allow him to edit this content element:

As soon as the user also shows the column list_type, the permission check works and he does not see the icons anymore:

The bug most probably came from the optimizations done in Web>List in https://review.typo3.org/c/Packages/TYPO3.CMS/+/68666 - the $row which is passed on to DatabaseRecordList::makeControl and then later to BackendUserAuthentication::recordEditAccessInternals() no longer is the full row, but just a basic version of it + the fields select by the user in the backend. So list_type is missing, and this auth-check is then no longer performed.


Files

acl-list-type.png (116 KB) acl-list-type.png Ernesto Baschny, 2023-04-21 14:16
acl-list-type.png (78.5 KB) acl-list-type.png Ernesto Baschny, 2023-04-21 14:16
web-list-buggy.png (67.2 KB) web-list-buggy.png Ernesto Baschny, 2023-04-21 14:21
web-list-ok.png (67.1 KB) web-list-ok.png Ernesto Baschny, 2023-04-21 14:21

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #93847: Split up RecordList table renderingClosedBenni Mack2021-04-01

Actions
Actions #1

Updated by Ernesto Baschny over 1 year ago

  • Related to Task #93847: Split up RecordList table rendering added
Actions #2

Updated by Ernesto Baschny over 1 year ago

Btw, clicking on one of the shown icons when the ACL check fails does not work, and brings the user to the exception:

Sorry, you didn't have proper permissions to perform this change.
ERROR: authMode "explicitAllow" failed for field "list_type" with value "dhbwevents_events" evaluated

So the problem is just "cosmetical", but also UX-related, and has no security implications (AFAIK).

Actions

Also available in: Atom PDF