Bug #43849
closedsys_file_reference link exclude field doesn't work
0%
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.
Updated by Tobias Liebig almost 12 years ago
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.
Updated by Lorenz Ulrich almost 12 years ago
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.
Updated by Gerrit Code Review almost 12 years ago
- Status changed from New to Under Review
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17215
Updated by Lorenz Ulrich almost 12 years ago
This can be closed since its duplicate is merged.
Updated by Stefan Galinski over 11 years ago
- Status changed from Under Review to Closed