⚲
Project
General
Profile
Sign in
Home
Projects
Help
Search
:
TYPO3 Core
All Projects
TYPO3 Core
Overview
Activity
Roadmap
Issues
Repository
Download (1017 Bytes)
Bug #2791
ยป patch-2791.txt
Sonja Schubert
, 2009-03-09 14:24
### 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:
(1-1/1)
Loading...