Fixed bug #16463: Bug: Custom configured modules can't be enabled for non-admins...
authorSteffen Kamper <info@sk-typo3.de>
Wed, 1 Dec 2010 11:20:56 +0000 (11:20 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 1 Dec 2010 11:20:56 +0000 (11:20 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9711 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_loadmodules.php

index bf2532a..53fae59 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-12-01  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #16463: Bug: Custom configured modules can't be enabled for non-admins (Thanks to Bastian Waidelich)
        * Fixed bug #16091: ExtDirect calls get cached with domain resulting in "unable to connect to the server" exceptions (Thanks to Andreas Kiessling)
 
 2010-12-01  Xavier Perseguers  <typo3@perseguers.ch>
index 9ee2078..31ec262 100644 (file)
@@ -247,7 +247,11 @@ class t3lib_loadModules {
                if (is_array($GLOBALS['TBE_MODULES']['_configuration'][$name]['configureModuleFunction'])) {
                        $obj = $GLOBALS['TBE_MODULES']['_configuration'][$name]['configureModuleFunction'];
                        if (is_callable($obj)) {
-                               return call_user_func($obj, $name, $fullpath);
+                               $MCONF = call_user_func($obj, $name, $fullpath);
+                               if ($this->checkModAccess($name, $MCONF) !== TRUE) {
+                                       return FALSE;
+                               }
+                               return $MCONF;
                        }
                }
 
@@ -482,4 +486,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_loadmodules.php']);
 }
 
-?>
\ No newline at end of file
+?>