[TYPO3-bugs] http://bugs.typo3.org/view.php?id=2016
Tapio Markula
tapio.markula at xetpoint.fi
Sat Sep 22 10:18:56 CEST 2007
Hi
The problem of that solution is that it doesn't take account other
modules than 'doc', which don't have submodules
Here is proper configuration system for resetting TBE_MODULES
$temp_TBE_MODULES = Array();
// configuration - $tbemodules should be replaced with some
reasonalbe configuration in plugin config and TS config for users/user
groups.
$tbemodules='web|layout,template;file;doc;user;tools';
$tbemodules =
t3lib_div::trimExplode(';',strtolower($tbemodules),1);
foreach($tbemodules AS $key => $val) {
t3lib_div::debug($val);
if(strstr($val,"|")) {
$valSplit = explode("|",$val);
$temp_TBE_MODULES[$valSplit[0]]=$valSplit[1];
}
else $temp_TBE_MODULES[$val]=''; }
$TBE_MODULES=$temp_TBE_MODULES;
The format is ok, but that misses access check.
It just reset the array $TBE_MODULES on the base of some confiugation.
This works fine with modules, which don't have submodules - not just the
module 'doc'!
The array has been called
$loadModules->load($TBE_MODULES);
but I don't know, if the load function makes access check or if the
access check should be done somewhat inside the foreach loop.
More information about the TYPO3-team-bugs
mailing list