Issue Bug Resolved

#111259Non-admin editors cannot publish new records on root level (pid=0) in a workspace, e.g. sys_file_metadata placeholders

Ines Willenbrock 10/27/26, 19:40 updated 10/30/26, 13:35

Description

Environment

  • TYPO3 13.4.36 and main (v15-dev, commit be4defe7999, 2026-10-23)
  • Non-admin backend user, member of a workspace (via a group); the group has sys_file_metadata in tables_modify on main, not on 13.4.36 (it makes no difference for this check)
  • A site with a second language is needed to create translations of file metadata in the backend

Steps to reproduce

  1. Create a workspace and make a non-admin backend user a member of it.
  2. In that workspace, create new sys_file_metadata records (translations of file metadata). They are stored as new placeholders (t3ver_state = 1, pid = 0).
  3. Publish them in the Workspaces module as that user.

Expected

The records are published. sys_file_metadata has ctrl.security.ignoreRootLevelRestriction = true, and #106569 restored that rule for editing and translating pid=0 records.

Actual

Nothing is published. sys_log contains, per record, table sys_file_metadata, action 8, error 1: “You cannot publish a record you do not have edit and show permissions for”. Admins can publish.

Note: publishing a changed copy of an existing record (t3ver_state = 0) works. Only new placeholders (t3ver_state = 1) are affected, because only they reach the failing check.

Cause (verified on 13.4.36 and main)

EXT:workspaces/Classes/Hook/DataHandlerHook.php, version_swap(), line 294 in 13.4.36 (line 346 in main), for new placeholder records:

if (!$dataHandler->hasPageContextPermission('pages', Permission::PAGE_SHOW, $pageRecord)) {

For pid = 0 the page record is VirtualRecord::RootPage. DataHandler::hasPageContextPermission() then returns the ignoreRootLevelRestriction setting of the table passed in, here ‘pages’, which is false. So non-admins fail the check. The branch for existing records further down passes $table.

Fix (tested on 13.4.36 and main)

Pass $table instead of ‘pages’ in that call.

13.4.36: a non-admin published two sys_file_metadata placeholders; sys_log shows “Record … was published” (action 8, error 0).
main: as a non-admin (user 3, workspace 1), a new sys_file_metadata translation (placeholder, t3ver_state = 1, pid = 0) failed with the error above unpatched and was published (errorLog empty, action 8, error 0) after the change. The same result was confirmed again in the backend after adding a second language.

I’ve included a patch for a casual look at it.

Reviews 3

Files 1

History 38

  1. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-30T13:35:19+00:00" > 10/30/26, 13:35 </span>

    Applied in changeset commit:d8f28f5bbfe36cb715d1bd1f162b520bc7ee090e.