#24465class.t3lib_loadmodules.php does not take into account the module access of extension based on extbase
Description
class.t3lib_loadmodules.php does not take into account the module access of extension based on extbase
function checkMod($name, $fullpath) {
if ($name == ‘user_ws’ && !t3lib_extMgm::isLoaded(‘version’)) {
return FALSE;
}
// Check for own way of configuring module
if (is_array($GLOBALS[‘TBE_MODULES’][‘_configuration’][$name][‘configureModuleFunction’])) {
$obj = $GLOBALS[‘TBE_MODULES’][‘_configuration’][$name][‘configureModuleFunction’];
if (is_callable($obj)) {
//2010-12-09 ham.bao fix the access control of extbase extension
$config = $GLOBALS[‘TBE_MODULES’][‘_configuration’][$name][‘config’];
// Fill $MCONF
$MCONF[‘name’] = $key;
$MCONF[‘access’] = $config[‘access’];
$MCONF[‘script’] = ‘_DISPATCH’;
if($this->checkModAccess($name, $MCONF)){
return call_user_func($obj, $name, $fullpath);
}else{
return false;
}
//2010-12-09 ham.bao fix the access control of extbase extension
//return call_user_func($obj, $name, $fullpath);
}
}
(issue imported from #M16905)Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.