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

This reverts commit e9543738e14e235087d303abeb1492cf0c8e5f01

Change-Id: I6638ca1c82482bd1b9477fb343b7d566e8fe559c
Reviewed-on: https://review.typo3.org/17498
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