From b68d0516ea20ec2705c9071d70493419c87ca5b0 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Wed, 8 Jan 2020 02:05:30 +0100 Subject: [PATCH] remove not working code for checking writable files ("is_writable()" uses a different user) --- src/Model/Storage/Filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Storage/Filesystem.php b/src/Model/Storage/Filesystem.php index bfc474a5aa..9c429cfb3c 100644 --- a/src/Model/Storage/Filesystem.php +++ b/src/Model/Storage/Filesystem.php @@ -125,7 +125,7 @@ class Filesystem extends AbstractStorage $this->createFoldersForFile($file); - if ((file_exists($file) && !is_writable($file)) || !file_put_contents($file, $data)) { + if (!file_put_contents($file, $data)) { $this->logger->warning('Failed to write data.', ['file' => $file]); throw new StorageException($this->l10n->t('Filesystem storage failed to save data to "%s". Check your write permissions', $file)); } -- 2.39.5