#109527Access to undefined array key "category_perms" if custom BE user groups are used
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
-
Gerrit Code Review pushed patch set 1 for main to change 93594 status
NewUnder Review <span data-processor="relativetime" data-value="2026-04-09T08:37:52+00:00" > 04/09/26, 08:37 </span> -
Gerrit Code Review pushed patch set 1 for 13.4 to change 93600 <span data-processor="relativetime" data-value="2026-04-09T11:57:26+00:00" > 04/09/26, 11:57 </span>
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-04-09T14:30:10+00:00" > 04/09/26, 14:30 </span> -
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-04-21T11:30:35+00:00" > 04/21/26, 11:30 </span>
Applied in changeset commit:072d73e8cfc929acd2fba8f9e0c43a2734f385d6.