Fixed bug #17113: Wrong filemount calculation in workspaces for admin users
authorSusanne Moog <typo3@susannemoog.de>
Tue, 18 Jan 2011 21:05:52 +0000 (21:05 +0000)
committerSusanne Moog <typo3@susannemoog.de>
Tue, 18 Jan 2011 21:05:52 +0000 (21:05 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10125 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_userauthgroup.php

index 834cc5f..1529838 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-18  Susanne Moog  <typo3@susanne-moog.de>
+
+       * Fixed bug #17113: Wrong filemount calculation in workspaces for admin users
+
 2011-01-18  Oliver Hader  <oliver.hader@typo3.org>
 
        * Cleanup: Updated copyright comments
index 1e67ac8..c2a207a 100644 (file)
@@ -1567,9 +1567,9 @@ class t3lib_userAuthGroup extends t3lib_userAuth {
                $fileMountpoints = trim($this->workspaceRec['file_mountpoints']);
                if ($this->workspace > 0) {
 
-                               // no custom filemounts that should serve as filter
+                               // no custom filemounts that should serve as filter or user is admin
                                // so all user mountpoints are re-applied
-                       if ($fileMountpoints === '') {
+                       if ($this->isAdmin() || $fileMountpoints === '') {
                                $this->groupData['filemounts'] = $usersFileMounts;
                        } else {
                                        // Fetching all filemounts from the workspace