Actions
Bug #24465
closedclass.t3lib_loadmodules.php does not take into account the module access of extension based on extbase
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-01-04
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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)
Files
Actions