Project

General

Profile

Actions

Bug #99614

open

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

Added by Florian Rival over 1 year ago. Updated 12 days ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2023-01-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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.


Files

be_usergroup.png (23.3 KB) be_usergroup.png category_perms in be user group Florian Rival, 2023-01-18 14:56
Edit record.png (11 KB) Edit record.png Record edited with categories Florian Rival, 2023-01-18 14:56

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #98689: Category tree: ‘indeterminate’ state broken in Typo3 11Resolved2022-10-21

Actions
Actions #1

Updated by Rémy DANIEL about 1 year ago

  • Related to Bug #98689: Category tree: ‘indeterminate’ state broken in Typo3 11 added
Actions #2

Updated by Robert von Hackwitz 7 months ago

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

Actions #3

Updated by Riccardo De Contardi 12 days 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

Actions

Also available in: Atom PDF