[BUGFIX] Include file tables in access list 77/17377/2
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:25:38 +0000 (20:25 +0100)
commitda29f0cf7b7d8248efaec74ee61ab31ade893ff4
tree83e90040480dbe01f197e4e38b5c1fc114697408
parent7003f86ca6ee442939187898eaa6b38e7bd02110
[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/17377
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php