Commit 984a9a85 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Anja Leichsenring
Browse files

[BUGFIX] Add default workspace for dummy user

The backend usergroup compare view requires to fetch the
group data of the groups to compare. Since this operation
depends on a user array, UserInformationService creates
such dummy user.

The dummy user array now also contains the default workspace
id `-99` to prevent triggering a database update which would
result in creating a sys log entry. This would fail since the user,
the database update should be performed on, is the dummy
user which is not fully set up.

Resolves: #93233
Releases: master, 10.4
Change-Id: I61870acbab133d9f3f1b80899b50662dca2bc9bf

Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: default avatarTYPO3com <>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <>
parent e7af3d13
......@@ -59,8 +59,9 @@ class UserInformationService
// Setup dummy user to allow fetching all group data
// @see \TYPO3\CMS\Core\Authentication\BackendUserAuthentication::fetchGroups
$user->user = [
'uid' => 3016,
'uid' => PHP_INT_MAX,
'options' => 3,
'workspace_id' => -99,
$user->usergroup_column => $groupId
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment