Bug #78274
closedTCEFORM.pages.categories.config.treeConfig.rootUid only works for admin users
Added by Gerhard Rupp about 8 years ago. Updated about 6 years ago.
100%
Description
If TCEFORM.pages.categories.config.treeConfig.rootUid is set non-admin users only get shown the (new) root category but no child nodes.
Updated by Faktor E GmbH over 7 years ago
Gerhard Rupp wrote:
If TCEFORM.pages.categories.config.treeConfig.rootUid is set non-admin users only get shown the (new) root category but no child nodes.
This does work for fields but not in flexforms. I get the same issue.
If you set following code as an example for tt_address plugin, only the category with uid 78 but not the child notes are displayed (for admins this works):
TCEFORM.tt_content.pi_flexform.tt_address_pi1.sDEF.groupSelection.config.treeConfig.rootUid = 78
Testet with TYPO3 7.6.21 and tt_address 3.2.2
Updated by Christoph Lehmann about 7 years ago
I can confirm it with another category field. It has nothing to do with tt_address directly...
Updated by Christoph Lehmann about 7 years ago
The tree items are collected in DatabaseTreeDataProvider.php => loadTreeData()
$this->loadTreeData(); $this->emitPostProcessTreeDataSignal();
and then secured via SignalSlot in CategoryPermissionsAspect.php => lookUpCategoryMountPointInTreeNodes(), eg. checked if they match the collection of categories allowed through usergroups.
The problem is, that their parents are not checked, eg. if one of the parents categories is allowed through usergroups. For Admins that check is not done, see
public function addUserPermissionsToCategoryTreeData(DatabaseTreeDataProvider $dataProvider, $treeData) { if (!$this->backendUserAuthentication->isAdmin() && $dataProvider->getTableName() === $this->categoryTableName) {
It has nothing to do with flexform field or not and looks broken in general... or a missing Feature? ;-)
Workaround: Allow every category you want so see under rootUid in your usergroup
Updated by Gerrit Code Review about 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54138
Updated by Gerrit Code Review about 7 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54141
Updated by Gerrit Code Review about 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54141
Updated by Gerrit Code Review about 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54141
Updated by Gerrit Code Review about 7 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54141
Updated by Gerrit Code Review almost 7 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54141
Updated by Gerrit Code Review almost 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54725
Updated by Christoph Lehmann almost 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 12b52059145d34b726fbe10d40069aa5a5173fec.
Updated by Gerrit Code Review almost 7 years ago
- Status changed from Resolved to Under Review
Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54725
Updated by Christoph Lehmann almost 7 years ago
- Status changed from Under Review to Resolved
Applied in changeset 3cd59bc301a0f7c16e67390d60f8d3f25f0e5a1f.
Updated by Gerrit Code Review almost 7 years ago
- Status changed from Resolved to Under Review
Patch set 2 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54138
Updated by Oliver Hader almost 7 years ago
- Status changed from Under Review to Resolved
Updated by Christoph Lehmann almost 7 years ago
- Related to Bug #83257: [FOLLOWUP] TCEFORM.pages.categories.config.treeConfig.rootUid only works for admin users added
Updated by Gerhard Rupp almost 7 years ago
- PHP Version changed from 7.0 to 7.1
Error still exists if category tree is embedded in a flexform.
For example:
TCEFORM.tt_content.pi_flexform.news_pi1.sDEF.settings\.categories.config.treeConfig.rootUid
does not work as exspected.
Updated by Georg Ringer over 4 years ago
- Related to Bug #90186: treeConfig.rootUid only works for admin users in flexforms added