Issue Bug Closed

#108853Editors can't delete records on pid=0

Bastien Lutz 02/04/26, 11:24 updated 03/31/26, 08:10

Description

This occurs in TYPO3v14.

If an editor with access to the table sys_redirect tries to delete a record on the pid 0 (using the Link module)
an exception is thrown:
clipboard-202602041223-iglei.png

This behaviour should also be reproducable with other records.
After some debugging, this seems to be a regression of: 88445: [TASK] Streamline DataHandler permission checks | https://review.typo3.org/c/Packages/TYPO3.CMS/+/88445

Reviews 3

Files 1

History 612

  1. Oliver Hader commented <span data-processor="relativetime" data-value="2026-02-04T16:19:21+00:00" > 02/04/26, 16:19 </span>

    Before the mentioned patch the scenario was:

                    $pageRec = $this->doesRecordExist_pageLookUp($output['pid'], $perms);
                    // Return TRUE if either a page was found OR if the PID is zero AND the user is ADMIN (in which case the record is at root-level):
                    $isRootLevelRestrictionIgnored = BackendUtility::isRootLevelRestrictionIgnored($table);
                    if (is_array($pageRec) || !$output['pid'] && ($this->admin || $isRootLevelRestrictionIgnored)) {
                        return $output;
                    }
  2. Bastien Lutz commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-02-05T09:15:10+00:00" > 02/05/26, 09:15 </span>

    Applied in changeset commit:3fa505a3613a39a28d825e27957d29306d9b81b9.