[BUGFIX] Admin fields not shown in setup module
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 29 Jul 2012 15:44:56 +0000 (17:44 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 29 Jul 2012 15:55:45 +0000 (17:55 +0200)
The admin functions are currently not shown in User->setup module.
Affected is for example the 'Display debug messages in a new
browser window' checkbox, that is never shown if an admin is logged in.

This regression was introduced by a wrong refactoring in issue #39164,
the class prefix patch. Looking at the code before and after, the
regression is obvious.

Change-Id: Ic892c830f1ca0cfaccf3e53648d405b35d463377
Releases: 6.0
Related: #39164
Resolves: #39365
Reviewed-on: http://review.typo3.org/13333
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/setup/mod/index.php

index fdcdc0d..ba0c0bf 100755 (executable)
@@ -796,6 +796,8 @@ class SC_mod_user_setup_index {
                if (is_object($accessObject) && method_exists($accessObject, 'accessLevelCheck')) {
                                // Initialize vars. If method fails, $set will be set to FALSE
                        return $accessObject->accessLevelCheck($config);
+               } elseif ($access == 'admin') {
+                       return $this->isAdmin;
                }
        }