Issue Bug Closed

#107497RecordAccessVoter ignores includeScheduledRecords visibility aspect

Georg Tiefenbrunn 09/19/25, 13:09 updated 12/02/25, 13:04

Description

The RecordAccessVoter currently only handles the includeHiddenPages visibility aspect.

The includeScheduledRecords aspect is ignored (starttime and endtime checks are always applied).

As a developer I expect all aspects being handled (param Context $context Context API to check against@).

TYPO3\CMS\Core\Domain\Access\RecordAccessVoter
- main: lines 74 and 81 v13: 66 and 72

Use case

Backend Preview of a Content Element using EXT:content_blocks (tt_content.pages: 'type' => 'group', 'allowed' => 'pages') which generates a TYPO3\CMS\Core\Collection\LazyRecordCollection using \TYPO3\CMS\Core\Domain\RecordFactory->createResolvedRecordFromDatabaseRow() (pure TYPO3 core stuff).

As an editor I expect all records (including outdated/scheduled) to be listed in the BE preview.

Reviews 2

History 69

  1. Georg Tiefenbrunn commented 09/19/25, 13:41

    The corresponding issue in EXT:content_blocks: https://github.com/FriendsOfTYPO3/content-blocks/issues/440

  2. Garvin Hicking changed category 09/19/25, 18:28

  3. Gerrit Code Review pushed patch set 1 for main to change 90762 status New Under Review 09/22/25, 16:40

  4. Gerrit Code Review pushed patch set 2 for main to change 90762 09/22/25, 16:52

  5. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % 09/23/25, 06:00

    Applied in changeset commit:e202362e82441ad7022be897867553121967e455.

  6. Gerrit Code Review pushed patch set 1 for 13.4 to change 90768 status Resolved Under Review 09/23/25, 06:42

  7. Georg Ringer commented and changed status Under Review Resolved 09/23/25, 07:10

    Applied in changeset commit:704fbc289c66549fb4ef986a459f922ffa23921a.

  8. Georg Tiefenbrunn commented 09/23/25, 08:13

    Thx for the quick fix 🤎

  9. Benni Mack changed status Resolved Closed 12/02/25, 13:04