Issue Bug Closed

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

Ernesto Baschny 04/21/23, 14:27 updated 03/25/25, 22:09

Description

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

acl-list-type.png

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:

web-list-buggy.png

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

web-list-ok.png

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 4

History 3

  1. Ernesto Baschny commented <span data-processor="relativetime" data-value="2023-04-21T14:30:26+00:00" > 04/21/23, 14:30 </span>

    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).

  2. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2025-03-25T22:09:36+00:00" > 03/25/25, 22:09 </span>

    closing the issue as we got rid of list_type in v14