diff options
author | Robin Appelman <robin@icewind.nl> | 2016-12-02 17:59:02 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-12-02 17:59:02 +0100 |
commit | 02ee4f958c4a5c99274964c609aeae9845ed37d3 (patch) | |
tree | a2d7df8b0003349a74567cdad5640dfc70a7fd73 /lib | |
parent | db56df18939fcdadd2b19ebab7db92a77e938c8d (diff) | |
download | nextcloud-server-02ee4f958c4a5c99274964c609aeae9845ed37d3.tar.gz nextcloud-server-02ee4f958c4a5c99274964c609aeae9845ed37d3.zip |
apply permissions mask for shared storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/Wrapper/PermissionsMask.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Wrapper/PermissionsMask.php b/lib/private/Files/Storage/Wrapper/PermissionsMask.php index 7bcb1087fef..239824b67e2 100644 --- a/lib/private/Files/Storage/Wrapper/PermissionsMask.php +++ b/lib/private/Files/Storage/Wrapper/PermissionsMask.php @@ -112,7 +112,7 @@ class PermissionsMask extends Wrapper { public function file_put_contents($path, $data) { $permissions = $this->file_exists($path) ? Constants::PERMISSION_UPDATE : Constants::PERMISSION_CREATE; - return $this->checkMask($permissions) and parent::file_put_contents($path, $data); + return $this->checkMask($permissions) ? parent::file_put_contents($path, $data) : false; } public function fopen($path, $mode) { |