#99614Category tree only shows first category in records categories tab if permission category is only checked for first level
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.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
Files 2
History 4
-
Rémy DANIEL changed Related to #98689 01/27/23, 09:59
-
Robert von Hackwitz commented 09/22/23, 09:34
-
Riccardo De Contardi commented and changed status
NewNeeds Feedback 04/14/24, 19:23Can someone confirm this issue? I tried to reproduce it on TYPO3 11.5.35, 12.4.14, 13.1.0-dev but I failed
-
Riccardo De Contardi commented and changed status
Needs FeedbackClosed target version 07/23/24, 08:06No 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.
Hi, still not solved?
I can confirm the bug on TYPO3 11.5.31