首页 > 解决方案 > TYPO3 以非管理员身份删除 FileReference

问题描述

我不知道必须激活哪个设置才能允许非管理员用户删除后端中的文件引用。

作为管理员,我有那个以非管理员用户身份登录时丢失的小垃圾桶图标。

我设置了每个标志以允许在后端用户模块中进行数据操作,但到目前为止没有任何效果。唯一的选择是授予用户管理员权限。我想念什么?

失踪

编辑:我在 TYPO3 10.4

编辑:字段的 TCA:

'image' => [
    'exclude' => true,
    'label'   => 'Image',
    'config'  => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
        'image',
        [
            'appearance'           => [
                'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference'
            ],
            'foreign_types'        => [
                \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
                    'showitem' => '
                    --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
                    --palette--;;filePalette'
                ]
            ],
            'foreign_match_fields' => [
                'fieldname'   => 'image',
                'tablenames'  => 'tx_association_domain_model_association',
                'table_local' => 'sys_file',
            ],
            'maxitems'             => 1,
            'minitems'             => 0
        ],
        $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
    ),

],

标签: typo3settingstypo3-10.x

解决方案


推荐阅读