diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-12-03 01:39:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-03 01:39:48 +0300 |
commit | 1131338562820b15efbb40ff9927193c03672aef (patch) | |
tree | 00447f6fafb8c5ebd3033975bb37ff5d5809a2db /lib | |
parent | 5a3a776af92060f82e4f07fdd53a4aa821419416 (diff) | |
parent | 1a379b0fdcb4ad468eab11e3c72d7f13ceeb42ea (diff) |
Merge pull request #2486 from nextcloud/shared-storage-mask
apply permissions mask for shared storage
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) { |