diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-10-13 12:25:59 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-16 21:41:51 +0200 |
commit | 0c6c36d0c547187dd2c46bdd45f6a718462a8853 (patch) | |
tree | 00a1d5ed2f5fbcb8a41e9a4f333fd1fc8044899b | |
parent | a87b34a059ee4bf15359abe39328344ef6433910 (diff) | |
download | nextcloud-server-0c6c36d0c547187dd2c46bdd45f6a718462a8853.tar.gz nextcloud-server-0c6c36d0c547187dd2c46bdd45f6a718462a8853.zip |
fix objectstore files having create permissions
-rw-r--r-- | lib/private/files/objectstore/objectstorestorage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/objectstore/objectstorestorage.php b/lib/private/files/objectstore/objectstorestorage.php index 40d52feb893..e108d7662d4 100644 --- a/lib/private/files/objectstore/objectstorestorage.php +++ b/lib/private/files/objectstore/objectstorestorage.php @@ -337,7 +337,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common { 'size' => 0, 'mtime' => $mtime, 'storage_mtime' => $mtime, - 'permissions' => \OCP\Constants::PERMISSION_ALL, + 'permissions' => \OCP\Constants::PERMISSION_ALL - \OCP\Constants::PERMISSION_CREATE, ); $fileId = $this->getCache()->put($path, $stat); try { @@ -362,7 +362,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common { if (empty($stat)) { // create new file $stat = array( - 'permissions' => \OCP\Constants::PERMISSION_ALL, + 'permissions' => \OCP\Constants::PERMISSION_ALL - \OCP\Constants::PERMISSION_CREATE, ); } // update stat with new data |