Issue Bug Closed

#105132Allow Editors to edit file reference of file metadata

Marc Hirdes 09/26/24, 13:30 updated 11/15/26, 20:01

Description

For video files I created a new thumbnail field in the sys_file_metadata table. The editor can add there a new file reference. But he can not delete it, beacause the file reference has pid=0. Therefore vendor/typo3/cms-core/Classes/Authentication/BackendUserAuthentication.php:553 isInWebMount() fails.

I would like to use the CALCPERMS hook. But this is later used in the function.

$GLOBALS[‘TYPO3_CONF_VARS’][‘SC_OPTIONS’][‘t3lib/class.t3lib_userauthgroup.php’][‘calcPerms’]

Is it possible to set the the hook first?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 4

  1. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2026-11-15T20:01:56+00:00" > 11/15/26, 20:01 </span>

    This is solved by #99516: the delete control of a file reference is now rendered for non-admin users if the parent record has no page, like sys_file_metadata on pid 0. It is fixed in main (change 85110) and in 14.3 (change 97583).

    I verified it on main in the backend with a non-admin editor who may modify sys_file_reference and has a custom file reference field on sys_file_metadata:

    • hide, delete, info and drag & drop are shown for each reference
    • hiding a reference and sorting it via drag & drop are saved correctly
    • deleting is covered by a functional test through the DataHandler

    No additional hook or permission handling is needed any more, so I am closing this issue. Please follow #99516 for further details.