[FEATURE] Show user TSconfig in Configuration module 71/56971/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 15 May 2018 15:57:53 +0000 (17:57 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Tue, 15 May 2018 16:59:46 +0000 (18:59 +0200)
The configuration module gets a new entry showing the
user TSconfig of the currently logged in user.
Note it is not possible to show user TSconfig of a different
user this way, this array is thus basically restricted
to admin users.

Resolves: #85017
Releases: master
Change-Id: Ic078160b2da1f2f5e24f13f9ee9ee708bf9a267e
Reviewed-on: https://review.typo3.org/56971
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Tested-by: Sascha Maier <sam@amedick-sommer.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Documentation/Changelog/master/Feature-85017-UserTSconfigShowInConfigurationModule.rst [new file with mode: 0644]
typo3/sysext/lowlevel/Classes/Controller/ConfigurationController.php
typo3/sysext/lowlevel/Resources/Private/Language/locallang.xlf

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-85017-UserTSconfigShowInConfigurationModule.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-85017-UserTSconfigShowInConfigurationModule.rst
new file mode 100644 (file)
index 0000000..c31b17d
--- /dev/null
@@ -0,0 +1,21 @@
+.. include:: ../../Includes.txt
+
+=============================================================
+Feature: #85017 - User TSconfig shown in Configuration module
+=============================================================
+
+See :issue:`85017`
+
+Description
+===========
+
+The user TSconfig array of the currently logged in user can be surfed in
+the System -> Configuration module.
+
+
+Impact
+======
+
+Backend administrators can check their user TSconfig in the configuration module.
+
+.. index:: Backend, TSConfig
\ No newline at end of file
index 6518b8d..ed6275c 100644 (file)
@@ -101,6 +101,10 @@ class ConfigurationController
             'label' => 'beUser',
             'type' => 'uc',
         ],
+        'beUserTsConfig' => [
+            'label' => 'beUserTsConfig',
+            'type' => 'beUserTsConfig',
+        ],
         'beRoutes' => [
             'label' => 'routes',
             'type' => 'routes',
@@ -198,6 +202,8 @@ class ConfigurationController
                     ArrayUtility::intersectRecursive($blindedConfigurationOptions[$globalArrayKey], $renderArray)
                 );
             }
+        } elseif ($selectedTreeDetails['type'] === 'beUserTsConfig') {
+            $renderArray = $backendUser->getTSConfig();
         } elseif ($selectedTreeDetails['type'] === 'uc') {
             $renderArray = $backendUser->uc;
         } elseif ($selectedTreeDetails['type'] === 'routes') {
index 30a121c..ed39528 100644 (file)
@@ -21,6 +21,9 @@
                        <trans-unit id="tbeStyles">
                                <source>$GLOBALS['TBE_STYLES'] (Skinning Styles)</source>
                        </trans-unit>
+                       <trans-unit id="beUserTsConfig">
+                               <source>$GLOBALS['BE_USER']-&gt;getTSConfig() (User TSconfig)</source>
+                       </trans-unit>
                        <trans-unit id="beUser">
                                <source>$GLOBALS['BE_USER']-&gt;uc (User Settings)</source>
                        </trans-unit>