summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/connector
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-03-03 19:47:35 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-03-03 20:03:06 +0100
commit3bdafc2122acede0ed4810768718ff9d2c947e64 (patch)
treea3404d09241ca556ed347b1ce0b92e47f8dc6598 /apps/dav/lib/connector
parent8d2238e0559be894a4b836d3371dbdae5696e5eb (diff)
downloadnextcloud-server-3bdafc2122acede0ed4810768718ff9d2c947e64.tar.gz
nextcloud-server-3bdafc2122acede0ed4810768718ff9d2c947e64.zip
Rename and move permissions are set when a file is updatable
* Fix unit tests
Diffstat (limited to 'apps/dav/lib/connector')
-rw-r--r--apps/dav/lib/connector/sabre/node.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/connector/sabre/node.php b/apps/dav/lib/connector/sabre/node.php
index 41dcb421913..95a5f0a8749 100644
--- a/apps/dav/lib/connector/sabre/node.php
+++ b/apps/dav/lib/connector/sabre/node.php
@@ -230,7 +230,7 @@ abstract class Node implements \Sabre\DAV\INode {
if ($this->info->isDeletable()) {
$p .= 'D';
}
- if ($this->info->isDeletable()) {
+ if ($this->info->isUpdateable()) {
$p .= 'NV'; // Renameable, Moveable
}
if ($this->info->getType() === \OCP\Files\FileInfo::TYPE_FILE) {