diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-11-01 21:41:10 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-11-01 21:41:10 +0300 |
commit | 67750b26af3e27ab64b04c57d13fddd0990d8832 (patch) | |
tree | a61947a67f6960926923ab0ef921504597210691 | |
parent | 1c199f216eb0abc4e0a3cf010ea8d35984b3f280 (diff) |
do not run file access check while source storage is not initializedfix/noid/uninited-source-storage
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | lib/CacheWrapper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CacheWrapper.php b/lib/CacheWrapper.php index b86373f..2354973 100644 --- a/lib/CacheWrapper.php +++ b/lib/CacheWrapper.php @@ -55,7 +55,7 @@ class CacheWrapper extends Wrapper { 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) { |