Review 13.4 Merged

89225[BUGFIX] Respect `ignoreRootLevelRestriction` for `pid=0` records

Christian Kuhn CR +2 V +2 Easy +11 −6 updated 04/24/25, 12:17

Commit message

With #106382 DataHandler permission check handling has been
streamlined and missed to keep respecting related TCA option
`ignoreRootLevelRestriction` for records handled and saved
on rootLevel (`pid=0`). For example FAL file and file metadata
are stored on `pid=0`, which are no longer editable or
translatable by casual editors.

Based on the change, empty page record are now passed down to
the BE_user `isInWebMount()` throwing an exception because no
`uid` is provided in the empty array.

This change modifies some places to reintroduce checks for the
TCA option `ignoreRootLevelRestriction` when record pid is zero,
not calling `isInWebMount()` with an empty page record.

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
  • Verified V +2 Done
    • Christian Kuhn +2
    • core-ci +1 CI

Issues 2

Files 1

Review log 34

  1. Christian Kuhn uploaded patch set 1 04/24/25, 12:08

  2. core-ci voted on patch set 1 V +1 04/24/25, 12:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/78124

  3. Christian Kuhn voted on patch set 1 CR +2 V +2 04/24/25, 12:17

  4. Christian Kuhn merged patch set 2 04/24/25, 12:17