Breaking-93062-VariousGroup-relatedPublicPropertiesInBE_USERRemoved.rst 1.44 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.. include:: ../../Includes.txt

=============================================================================
Breaking: #93062 - Various group-related public properties in BE_USER removed
=============================================================================

See :issue:`93062`

Description
===========

The PHP API class `BackendUserAuthentication` was built back in
PHP4 days and had a few public properties which have been removed.

Their purpose was to store data between methods while resolving
groups, where there are other methods containing all group-related
information already anyways.

- :php:`TYPO3\CMS\Core\Authentication\BackendUserAuthentication->groupList`
- :php:`TYPO3\CMS\Core\Authentication\BackendUserAuthentication->includeGroupArray`


Impact
======

Accessing or setting these properties have no effect anymore.


Affected Installations
======================

TYPO3 installations with third-party extensions accessing these
`BackendUserAuthentication` properties, which is highly unlikely,
or because they were built 10 years ago, still accessing these properties.


Migration
=========

Use `BackendUserAuthentication->userGroupsUID` (array of group UIDs) instead,
which contains the groups in the proper order on how they were resolved.

If this is not needed directly, it is usually highly recommended to use the
Context API's "backend.user" aspect to retrieve a user's groups of a
backend user.

.. index:: PHP-API, FullyScanned, ext:core