#106559No access to sub categories when using category_perms + treeConfig.startingPoints
Description
Using both group user permission and treeConfig.startingPoints on the same category result in not showing the sub categories for the editor :
clipboard-202504111537-s2x0p.png
*Expected behavior:*
Subcategories under the treeConfig.startingPoints category should be visible in the editor interface, as long as the user has access via Category Mounts.
*Actual behavior:*
Only the root category set by treeConfig.startingPoints is visible. Its children (subcategories) are not shown, despite being accessible via the group’s Category Mounts.
- Set TCEFORM.pages.categories.config.treeConfig.startingPoints = [id of a category with children]
- Assign a backend user group with Category Mounts including the same root category.
- Log in as a backend user from that group and open a page with a category field.
- Observe that only the root category is shown, not the subcategories.
- Adding a subcategory to the treeConfig.startingPoints configuration make the other subcategories appear
Config : TCEFORM.pages.categories.config.treeConfig.startingPoints = 3,4
Result :
clipboard-202504111543-hillr.png
I can reproduce this issue with both TYPO3 V12 and V13.
Reviews 5
- 14.3 97391[BUGFIX] Keep category tree for mounted starting points
- main 97249[BUGFIX] Keep category tree for mounted starting points
- main 97252[BUGFIX] Keep covered starting points in filtered category tree
- main 87780[BUGFIX] Fix broken mount point handling permission check
- main 89583[BUGFIX] Use category uid in rootline if category parent =0
Related issues 1
Files 3
History 1019
-
Renan Gautier changed description <span data-processor="relativetime" data-value="2025-04-14T08:05:09+00:00" > 04/14/25, 08:05 </span>
-
Alexander Wende commented <span data-processor="relativetime" data-value="2025-05-21T05:13:51+00:00" > 05/21/25, 05:13 </span>
-
Jonathan IROULIN commented <span data-processor="relativetime" data-value="2025-05-27T16:40:55+00:00" > 05/27/25, 16:40 </span>
The situation we are encountering with Renan (my colleague) is linked to the fact that category 3 (in the example) has the parent field equal to 0.
Case 1 : TCEFORM.pages.categories.config.treeConfig.startingPoints = 3
The value 0 (parent field for category 3) is not present in
$categoryMountPoints = $GLOBALS[‘BE_USER’]->getCategoryMountPoints();And so
$uidsInRootline = $this->findUidsInRootline($startingPoint);returns an empty array which then leads to the line
which force us to go to ‘lookUpCategoryMountPointInTreeNodes’ method which uses $treeNodeCollection as parametter.
However,
$treeNodeCollection = $treeData->getChildNodes();contains the child categories of category 3 but not category 3 itself.
And in our case, the daughter categories have not been ticked in one of our user’s groups. So no categories are returned at all.
Case 2: TCEFORM.pages.categories.config.treeConfig.startingPoints = 3,4
This case works because when we execute
findUidsInRootline(4)category number 3 is in the rootline of category number 4 and in $categoryMountPoints so$shallRepopulateTreeis false and so the$treeDatais not emptied.So in my opinion in order to solve this issue we must get the categorie 3 :
1. included in
$uidsInRootlineifparentfield value is equal to 0so we need to add (it works, need to check if it is not a access/security issue)
else{ $parentUids[] = $uid; }or
2. used in lookUpCategoryMountPointInTreeNodes methode
(and i don’t have the updated code yet in mind)
Without this, we are forced to tick all the categories accessible to groups each time a new category is created. This is impossible (and from every allowed treenode we have natural access to their childNodes).
-
Jonathan IROULIN commented <span data-processor="relativetime" data-value="2025-05-28T04:21:21+00:00" > 05/28/25, 04:21 </span>
I think this bug concern TYPO3 version 10 to master.
On TYPO3 v9 it worked because :
if (in_array($dataProvider->getRootUid(), $categoryMountPoints)) { return; }(https://git.typo3.org/typo3/typo3/-/blob/9.5/typo3/sysext/backend/Classes/Security/CategoryPermissionsAspect.php?ref_type=heads#L78)
was correct so we escaped the$treeData->removeChildNodes();from line 90.
-
Gerrit Code Review pushed patch set 1 for main to change 89583 status
NewUnder Review <span data-processor="relativetime" data-value="2025-05-28T10:14:22+00:00" > 05/28/25, 10:14 </span> -
Gerrit Code Review pushed patch set 2 for main to change 89583 <span data-processor="relativetime" data-value="2025-05-28T10:28:48+00:00" > 05/28/25, 10:28 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 89583 <span data-processor="relativetime" data-value="2025-05-28T12:30:36+00:00" > 05/28/25, 12:30 </span>
-
Uwe Wiebach commented <span data-processor="relativetime" data-value="2025-05-28T13:04:04+00:00" > 05/28/25, 13:04 </span>
Seems to be a duplicate of #102015
-
Uwe Wiebach changed Duplicates #102015 <span data-processor="relativetime" data-value="2025-05-28T13:07:13+00:00" > 05/28/25, 13:07 </span>
-
Gerrit Code Review pushed patch set 14 for main to change 87780 <span data-processor="relativetime" data-value="2025-07-30T11:27:11+00:00" > 07/30/25, 11:27 </span>
-
Alexander Grein commented and changed TYPO3 Version
1214 PHP Version8.28.3 <span data-processor="relativetime" data-value="2026-04-16T15:07:14+00:00" > 04/16/26, 15:07 </span>This issue become present again, because of this commit released with TYPO3 13.4.28:
https://github.com/typo3/typo3/commit/ded18741090 -
Gerrit Code Review pushed patch set 15 for main to change 87780 <span data-processor="relativetime" data-value="2026-04-22T06:53:43+00:00" > 04/22/26, 06:53 </span>
-
Andreas Kienast changed status
Under ReviewNew <span data-processor="relativetime" data-value="2026-04-22T13:43:58+00:00" > 04/22/26, 13:43 </span> -
Gerrit Code Review pushed patch set 1 for main to change 97249 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-31T09:12:55+00:00" > 10/31/26, 09:12 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97249 <span data-processor="relativetime" data-value="2026-10-31T09:39:59+00:00" > 10/31/26, 09:39 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97391 <span data-processor="relativetime" data-value="2026-11-06T09:28:14+00:00" > 11/06/26, 09:28 </span>
-
Gerrit Code Review pushed patch set 2 for 14.3 to change 97391 <span data-processor="relativetime" data-value="2026-11-07T18:50:10+00:00" > 11/07/26, 18:50 </span>
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-07T19:05:15+00:00" > 11/07/26, 19:05 </span>Applied in changeset commit:7751ff67416b67be6273bb3112d661bb183aa2d8.
-
Benni Mack changed Related to #96288 <span data-processor="relativetime" data-value="2026-11-13T08:52:55+00:00" > 11/13/26, 08:52 </span>
I can confirm this for TYPO3 12.4.31.
Looks like a problem while repopulating the “secure” tree. https://git.typo3.org/typo3/typo3/-/blob/12.4/typo3/sysext/backend/Classes/Security/CategoryPermissionsAspect.php?ref_type=heads#L89