[BUGFIX] Include file tables in access list 83/17283/3
authorHelmut Hummel <helmut.hummel@typo3.org>
Fri, 28 Dec 2012 14:36:02 +0000 (15:36 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 5 Jan 2013 19:24:49 +0000 (20:24 +0100)
commitfa2cb038a38d1b0837e00e9c8f0f4367fde5f5f5
treebf2592447dd3946e542fbabaf9ec08cdaee20654
parent160712cd22486d103c27bb205198cef6d356f90e
[BUGFIX] Include file tables in access list

The BackendUtility::getExcludeFields method does not respect the
"ignoreRootLevelRestriction" configuration for these tables.
The result is that editors never see exclude fields as it is not
possible to set them in the access list in a backend group record.

Solution is to ignore the root level configuration if
"ignoreRootLevelRestriction" is also set in TCA.

This change also adds unit tests to check the fixed behavior
as well as the default behavior of this method.

Fixes: #44242
Releases: 6.0, 6.1

Change-Id: I2bb0d989028134388b24fa7ae4f139f2ebf8ee93
Reviewed-on: https://review.typo3.org/17283
Reviewed-by: Mattias Nilsson
Reviewed-by: Stefan Neufeind
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php