Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-12-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #44242: Exclude fields not show for sys_file and sys_file_reference tablesClosed2012-12-27

Actions
Actions #1

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.

Actions #2

Updated by Lorenz Ulrich almost 12 years ago

How can we find out?

Actions #3

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.

Actions #4

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

Actions #5

Updated by Lorenz Ulrich almost 12 years ago

This can be closed since its duplicate is merged.

Actions #6

Updated by Stefan Galinski over 11 years ago

  • Status changed from Under Review to Closed
Actions

Also available in: Atom PDF