Fixed bug #8212: IRRE - Adding new child elements does not work on root page
authorOliver Hader <oliver.hader@typo3.org>
Tue, 5 May 2009 20:34:26 +0000 (20:34 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 5 May 2009 20:34:26 +0000 (20:34 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@5390 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms_inline.php

index 06a773e..2f05f7c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-05  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #8212: IRRE - Adding new child elements does not work on root page
+
 2009-04-25  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed issue #10982: htmlArea RTE: Broken link to css in some dialogue windows with Firefox 3.0.9 and TYPO3 4.2
index 509e64a..af34edb 100755 (executable)
@@ -1842,6 +1842,10 @@ class t3lib_TCEforms_inline {
                $hasAccess = 0;
                $deniedAccessReason = '';
 
+                       // Admin users always have acces:
+               if ($GLOBALS['BE_USER']->isAdmin()) {
+                       return true;
+               }
                        // If the command is to create a NEW record...:
                if ($cmd=='new') {
                                // If the pid is numerical, check if it's possible to write to this page: