Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_accesscontrol.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2022-11-01 21:41:10 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2022-11-01 21:41:10 +0300
commit67750b26af3e27ab64b04c57d13fddd0990d8832 (patch)
treea61947a67f6960926923ab0ef921504597210691
parent1c199f216eb0abc4e0a3cf010ea8d35984b3f280 (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.php2
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) {