diff --git a/lib/CacheWrapper.php b/lib/CacheWrapper.php index b86373f4..23549732 100644 --- a/lib/CacheWrapper.php +++ b/lib/CacheWrapper.php @@ -55,7 +55,7 @@ public function __construct(ICache $cache, IStorage $storage, Operation $operati public const PERMISSION_DELETE = 8; protected function formatCacheEntry($entry) { - if (isset($entry['path']) && isset($entry['permissions'])) { + if (isset($entry['path']) && isset($entry['permissions']) && $this->storage->getWrapperStorage() !== null) { try { $this->operation->checkFileAccess($this->storage, $entry['path'], $entry['mimetype'] === 'httpd/unix-directory'); } catch (ForbiddenException $e) {