### Eclipse Workspace Patch 1.0 #P igeworkspace42 Index: t3lib/class.t3lib_tceforms_inline.php =================================================================== --- t3lib/class.t3lib_tceforms_inline.php (revision 270) +++ t3lib/class.t3lib_tceforms_inline.php (working copy) @@ -1846,9 +1846,14 @@ if ($cmd=='new') { // If the pid is numerical, check if it's possible to write to this page: if (t3lib_div::testInt($this->inlineFirstPid)) { - $calcPRec = t3lib_BEfunc::getRecord('pages', $this->inlineFirstPid); - if(!is_array($calcPRec)) { - return false; + if($this->inlineFirstPid == '0') { + // If the pid is the root page user has access because its an admin user + $hasAccess = 1; + } else { + $calcPRec = t3lib_BEfunc::getRecord('pages', $this->inlineFirstPid); + if(!is_array($calcPRec)) { + return false; + } } $CALC_PERMS = $GLOBALS['BE_USER']->calcPerms($calcPRec); // Permissions for the parent page if ($table=='pages') { // If pages: