[BUGFIX] Allow reading files if storage is not browsable 34/23034/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Sat, 10 Aug 2013 21:26:42 +0000 (23:26 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 11 Aug 2013 21:23:32 +0000 (23:23 +0200)
Whether a storage is browsable or not should not
affect the possibility to read a file with a
given identifier.

Releases: 6.0, 6.1, 6.2
Resolves: #51010

Change-Id: Ic754143ed39a277f14c488c5b0d4c050dde027df
Reviewed-on: https://review.typo3.org/23034
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Resource/ResourceStorage.php

index f244b2b..163a391 100644 (file)
@@ -590,9 +590,6 @@ class ResourceStorage {
                        $isWriteCheck = TRUE;
                }
                // Check 3: Check the capabilities of the storage (and the driver)
-               if ($isReadCheck && !$this->isBrowsable()) {
-                       return FALSE;
-               }
                if ($isWriteCheck && !$this->isWritable()) {
                        return FALSE;
                }