[!!!][TASK] Remove deprecated Extbase-related code (Part 3)
[Packages/TYPO3.CMS.git] / typo3 / sysext / adminpanel / Classes / Utility / StateUtility.php
index b818416..b04a26e 100644 (file)
@@ -64,6 +64,7 @@ class StateUtility
 
     public static function isHiddenForUser(): bool
     {
-        return (bool)($GLOBALS['BE_USER']->extAdminConfig['hide'] ?? false);
+        $beUser = $GLOBALS['BE_USER'] ?? null;
+        return $beUser->getTSConfig()['admPanel.']['hide'] ?? false;
     }
 }