From af6445a2c976969dce48ddd19d90911ca9c872d2 Mon Sep 17 00:00:00 2001
From: Markus Klein <markus.klein@typo3.org>
Date: Mon, 17 Feb 2020 18:01:06 +0100
Subject: [PATCH] [BUGFIX] BE user module shows detail view for users with no
 permissions

Preset the expected data values correctly to make the detail view
of BE users functional if those have no table read or modify
permissions.

Resolves: #90409
Releases: master
Change-Id: I3040390c7f702cd201909ded3499f445ea83e7c2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63280
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
---
 typo3/sysext/beuser/Classes/Service/UserInformationService.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/typo3/sysext/beuser/Classes/Service/UserInformationService.php b/typo3/sysext/beuser/Classes/Service/UserInformationService.php
index ea2e1f976e30..5cf313d38412 100644
--- a/typo3/sysext/beuser/Classes/Service/UserInformationService.php
+++ b/typo3/sysext/beuser/Classes/Service/UserInformationService.php
@@ -74,6 +74,8 @@ class UserInformationService
         }
 
         // table permissions
+        $data['tables']['tables_select'] = [];
+        $data['tables']['tables_modify'] = [];
         foreach (['tables_select', 'tables_modify'] as $tableField) {
             $temp = GeneralUtility::trimExplode(',', $user->dataLists[$tableField], true);
             foreach ($temp as $tableName) {
-- 
GitLab