Issue Bug Closed

#99614Category tree only shows first category in records categories tab if permission category is only checked for first level

Florian Rival 01/18/23, 15:06 updated 07/23/24, 08:06

Description

How to reproduce :

  1. Add a category with sub-categories
  2. Create a backend user group and set ‘category_perms’ with only first category checked (see capture)
  3. Add this group to a non-admin user
  4. 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.

Files 2

History 4

  1. Rémy DANIEL changed Related to #98689 01/27/23, 09:59

  2. Robert von Hackwitz commented 09/22/23, 09:34

    Hi, still not solved?
    I can confirm the bug on TYPO3 11.5.31

  3. Riccardo De Contardi commented and changed status New Needs Feedback 04/14/24, 19:23

    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

  4. Riccardo De Contardi commented and changed status Needs Feedback Closed target version 07/23/24, 08:06

    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.