--- typo3_src-4.2.8/t3lib/class.t3lib_tcemain.php 2009-07-16 11:32:41.000000000 +0200 +++ typo3_current/t3lib/class.t3lib_tcemain.php 2009-08-13 17:00:00.000000000 +0200 @@ -5322,7 +5322,7 @@ * @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); @@ -5345,6 +5345,15 @@ } } } + + // 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; }