Project

General

Profile

Feature #20885 ยป t3lib_tcemain.diff

Administrator Admin, 2009-08-14 14:55

View differences:

typo3_current/t3lib/class.t3lib_tcemain.php 2009-08-13 17:00:00.000000000 +0200
* @return boolean Returns true if the user may insert a record from table $insertTable on page $pid
*/
function checkRecordInsertAccess($insertTable,$pid,$action=1) {
global $TCA;
global $TCA, $TYPO3_CONF_VARS;
$res = 0;
$pid = intval($pid);
......
}
}
}
// Hook for alternative insert-rules
if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkRecordInsertAccess'])) {
$_params = array('insertTable' => $insertTable, 'pid' => $pid, 'action' => $action, 'res' => &$res);
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkRecordInsertAccess'] as $_funcRef) {
t3lib_div::callUserFunction($_funcRef, $_params, $this);
}
}
return $res;
}
    (1-1/1)