Project

General

Profile

Actions

Bug #24465

closed

class.t3lib_loadmodules.php does not take into account the module access of extension based on extbase

Added by bingquan no-lastname-given almost 14 years ago. Updated over 10 years ago.

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

class.t3lib_loadmodules.php (21.8 KB) class.t3lib_loadmodules.php Administrator Admin, 2011-01-04 03:46
Actions

Also available in: Atom PDF