Bug #43849
closed
sys_file_reference link exclude field doesn't work
Added by Lorenz Ulrich almost 12 years ago.
Updated over 11 years ago.
Description
An sys_file_reference record, used by IRRE for images in tt_content, has four text fields:
- title
- link
- description
- alternative
link is the only exclude field of these fields. Unfortunately it is not possible to select this exclude field in the access list of a backend usergroup. I didn't find out why, since the configuration seems to be correct.
As a a consequence, an non-admin user cannot set a link from an image.
Technically it's because in \TYPO3\CMS\Backend\Utility\BackendUtility:getExcludeFields all "rootLevel" tables (sys_file_reference is one) are ignored.
I'm not sure what the reason is.
sys_file_reference uses the new security configuration option: ignoreRootLevelRestriction
/**
* Whether to ignore restrictions on root-level records.
* The regular behaviour is that records on the root-level (page-id 0)
* only can be accessed by admin users.
*
* @param string $table Name of the table
* @return boolean
*/
static public function isRootLevelRestrictionIgnored($table) {
return !empty($GLOBALS['TCA'][$table]['ctrl']['security']['ignoreRootLevelRestriction']);
}
I think the check in \TYPO3\CMS\Backend\Utility\BackendUtility:getExcludeFields must be adjusted to respect this configuration.
- Status changed from New to Under Review
This can be closed since its duplicate is merged.
- Status changed from Under Review to Closed
Also available in: Atom
PDF