remove not working code for checking writable files ("is_writable()" uses a different user)

2022.09-rc
nupplaPhil 2020-01-08 02:05:30 +01:00
rodzic 1b2ff54f66
commit b68d0516ea
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: D8365C3D36B77D90
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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));
}