From 30332b78c0eb5bc9a802b0ccb3e3a446b9b8122b Mon Sep 17 00:00:00 2001 From: Alexis Date: Fri, 31 Mar 2017 17:32:09 +0200 Subject: [PATCH] Add FIleMode option to thumbnails Set thumbnails' permissions to those given in the fileMode option to grant same access to images and their thumbnail, preventing conflicts between users' rights if kept to default 0644. --- src/Driver/ElFinderVolumeDriver.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Driver/ElFinderVolumeDriver.php b/src/Driver/ElFinderVolumeDriver.php index ba76f04..74093af 100644 --- a/src/Driver/ElFinderVolumeDriver.php +++ b/src/Driver/ElFinderVolumeDriver.php @@ -3853,6 +3853,7 @@ protected function createTmb($path, $stat) { $this->fcloseCE($src, $path); fclose($trg); + @chmod($tmb, $this->options['fileMode']); $result = false;