Review 13.4 Merged

88797[BUGFIX] Allow to visit pages if editor has no access

Benni Mack CR +2 V +2 Easy +11 −3 updated 03/27/25, 12:35

Commit message

When an editor (non-admin) is logged in in the backend,
and is logged into the frontend with a usergroup as well,
the user is not allowed to view to a access-restricted page
for which the BE admin has no access - even though
the frontend is accessible with the regular fe permission rights
of the FE usergroup in the session.

This happens because the Preview simulation takes place
in the Frontend (PreviewSimulator middleware) first,
then evaluates that a preview should be shown (due to a
ADMCMD_simUser=1 for example), and then checks - once
the page is resolved - if the BE editor has access to the
page - because he/she is logged in.

In this case, when a BE editor is logged in and has no
permission to actually see the page due to BE restrictions,
it is ADDITIONALLY checked now if the record can be
previewed with the current Context information via
the AccessVoter.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 4

Files 1

Review log 34

  1. Benni Mack commented on patch set 1 03/27/25, 12:24

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 03/27/25, 12:33 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/76451

  3. Benni Mack voted on patch set 1 CR +2 V +2 03/27/25, 12:35

  4. Benni Mack merged patch set 2 03/27/25, 12:35