Project

General

Profile

Bug #15425 » bug_2278.diff

Administrator Admin, 2006-10-10 13:09

View differences:

t3lib/class.t3lib_tcemain.php (Arbeitskopie)
* @return boolean Returns true if the user has general access to modify the $table
*/
function checkModifyAccessList($table) {
global $TYPO3_CONF_VARS;
$hookObjectsArr = array();
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkModifyAccessList'])) {
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkModifyAccessList'] as $classRef) {
$hookObjectsArr[] = &t3lib_div::getUserObj($classRef);
}
}
$res = ($this->admin || (!$this->tableAdminOnly($table) && t3lib_div::inList($this->BE_USER->groupData['tables_modify'],$table)));
foreach ($hookObjectsArr as $hookObj) {
if (method_exists($hookObj, 'recheckModifyAccessList')) {
$hookObj->recheckModifyAccessList($table, $this->cmdmap, &$this, &$res);
}
}
return $res;
}
(2-2/6)