Skip to content
Snippets Groups Projects
Commit 0c6c36d0 authored by Robin Appelman's avatar Robin Appelman Committed by Thomas Müller
Browse files

fix objectstore files having create permissions

parent a87b34a0
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment