Bug #99614
closedCategory tree only shows first category in records categories tab if permission category is only checked for first level
0%
Description
How to reproduce :
- Add a category with sub-categories
- Create a backend user group and set 'category_perms' with only first category checked (see capture)
- Add this group to a non-admin user
- Edit a record with 'categories' tab allowed
You should see the selected category and the sub-categories but instead, you only see the selected category (see capture).
If the category checked in the 'category_perms' of the user group is at a second level, it works as expected.
Probable cause
It's because in file CategoryPermissionsAspect::addUserPermissionsToCategoryTreeData() , when method lookUpCategoryMountPointInTreeNodes() is called, it looks only for category mount point in subcategories, first category is ignored and subcategories are never added to tree.
Files
Updated by Rémy DANIEL about 2 years ago
- Related to Bug #98689: Category tree: ‘indeterminate’ state broken in Typo3 11 added
Updated by Robert von Hackwitz over 1 year ago
Hi, still not solved?
I can confirm the bug on TYPO3 11.5.31
Updated by Riccardo De Contardi 11 months ago
- Status changed from New to Needs Feedback
Can someone confirm this issue? I tried to reproduce it on TYPO3 11.5.35, 12.4.14, 13.1.0-dev but I failed
Updated by Riccardo De Contardi 8 months ago
- Status changed from Needs Feedback to Closed
- Target version deleted (
next-patchlevel)
No feedback within 90 days > I close this issue.
If you think that this is the wrong decision or experience the issue again, please reopen it or open a new issue with a reference to this one.
Thank you.