Issue Bug Closed

#109527Access to undefined array key "category_perms" if custom BE user groups are used

Johannes Schlier 04/09/26, 08:37 updated 04/21/26, 11:30

Description

The method `getCategoryMountPoints()` in `TYPO3\CMS\Core\Authentication\BackendUserAuthentication` checks all user groups for the array key `category_perms`.

In a couple of projects we have an extension that adds a custom backend group via the `TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent` that does not add all fields that actual be_groups have in the database, as they are not required for its functionality.

The method `fetchGroupData()` within BackendUserAuthentication adds fields that be_groups usually have to avoid such PHP 8 warnings/errors.
They were added with this patch https://review.typo3.org/c/Packages/TYPO3.CMS/+/69012/24/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
but do not include all fields that be_groups actually have.

Notably `category_perms` is missing, which is leading to the undefined array key error in our project when an editor tries to render the sys_category tree, e. g. when editing sys_file_metadata.

Also missing (compared to the be_groups TCA definition) are `title`, `TSconfig`, `tsconfig_includes` and `subgroup`, but I don’t know if those missing can lead to similar errors though.

Reviews 2

History 24

  1. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-04-09T14:30:10+00:00" > 04/09/26, 14:30 </span>

    Applied in changeset commit:072d73e8cfc929acd2fba8f9e0c43a2734f385d6.