Fixed bug #10642: Backend admin cannot perform file operations in filelist (credits...
authorSteffen Kamper <info@sk-typo3.de>
Tue, 24 Mar 2009 16:08:32 +0000 (16:08 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Tue, 24 Mar 2009 16:08:32 +0000 (16:08 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5221 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_userauthgroup.php

index e9c7432..a894b4e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-03-24  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #10642: Backend admin cannot perform file operations in filelist (credits to Christian Kuhn)
        * Fixed bug #10761: Searching for specific record opens "edit record" in wrong frame
 
 2009-03-23  Steffen Kamper  <info@sk-typo3.de>
index c9022b0..8199238 100644 (file)
@@ -1027,7 +1027,11 @@ class t3lib_userAuthGroup extends t3lib_userAuth {
         * @return      integer         File operation permission bitmask
         */
        public function getFileoperationPermissions() {
-               return $this->groupData['fileoper_perms'];
+               if ($this->isAdmin()) { 
+                       return 31;
+               } else {
+                       return $this->groupData['fileoper_perms'];
+               }
        }
 
        /**