Revert "[BUGFIX] LocalDriver needs to respect "is_writeable"" 99/17499/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Sat, 12 Jan 2013 18:27:53 +0000 (19:27 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 12 Jan 2013 18:28:00 +0000 (19:28 +0100)
This change broke the tests

This reverts commit af01ce40933c79162dfb9984d948363fc6199811

Change-Id: I29c9c5893e42278b7e1f645e60874b2cdb20074c
Reviewed-on: https://review.typo3.org/17499
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/core/Classes/Resource/ResourceStorage.php

index 6cf9edb..f25e42e 100644 (file)
@@ -579,7 +579,7 @@ class ResourceStorage {
                        $isReadCheck = TRUE;
                }
                $isWriteCheck = FALSE;
-               if (in_array($action, array('add', 'edit', 'write', 'upload', 'move', 'rename', 'unzip', 'remove'))) {
+               if (in_array($action, array('write', 'delete'))) {
                        $isWriteCheck = TRUE;
                }
                // Check 3: Check the capabilities of the storage (and the driver)
@@ -625,7 +625,7 @@ class ResourceStorage {
                        $isReadCheck = TRUE;
                }
                $isWriteCheck = FALSE;
-               if (in_array($action, array('add', 'move', 'write', 'remove', 'rename'))) {
+               if (in_array($action, array('write', 'delete', 'deleteRecursive'))) {
                        $isWriteCheck = TRUE;
                }
                // Check 3: Check the capabilities of the storage (and the driver)
@@ -1942,4 +1942,4 @@ class ResourceStorage {
        }
 }
 
-?>
+?>
\ No newline at end of file