Skip to content
Snippets Groups Projects
Commit 2ba79868 authored by Christian Eßl's avatar Christian Eßl Committed by Anja Leichsenring
Browse files

[BUGFIX] Show correct context menu for file mounts

It must not be possible to perform rename/copy/cut/delete actions on
a file mount and this is already respected in the FilemountsProvider
context menu and used in the filelist svg tree.

However, the docheader section in the top right corner of the filelist
module showed the wrong context menu for file mounts, which made it
possible for editors to perform these actions.

Resolves: #90677
Releases: master, 9.5
Change-Id: Iac10b18a4fa3249de9b9c29a0102b3832c933841
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63674


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 3503dfae
Branches
Tags
No related merge requests found
......@@ -211,7 +211,9 @@ class MetaInformation
Icon::SIZE_SMALL
)->render() . '</span>';
}
$theIcon = BackendUtility::wrapClickMenuOnIcon($iconImg, 'sys_file', $pageRecord['combined_identifier']);
$tableName = ($resourceObject->getIdentifier() === $resourceObject->getStorage()->getRootLevelFolder()->getIdentifier())
? 'sys_filemounts' : 'sys_file';
$theIcon = BackendUtility::wrapClickMenuOnIcon($iconImg, $tableName, $pageRecord['combined_identifier']);
} catch (ResourceDoesNotExistException $e) {
$theIcon = '';
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment