Project

General

Profile

Feature #18677 » irre-root-page.diff

Administrator Admin, 2008-04-23 12:12

View differences:

t3lib/class.t3lib_tceforms_inline.php (working copy)
if ($cmd=='new') {
// If the pid is numerical, check if it's possible to write to this page:
if (t3lib_div::testInt($this->inlineFirstPid)) {
if ($GLOBALS['BE_USER']->isAdmin() && $this->inlineFirstPid == 0) {
// Admin users can add items to the root page
return true;
}
$calcPRec = t3lib_BEfunc::getRecord('pages', $this->inlineFirstPid);
if(!is_array($calcPRec)) {
return false;
......
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tceforms_inline.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tceforms_inline.php']);
}
?>
?>
(1-1/2)