summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-05-09 17:18:43 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-05-09 17:18:43 +0200
commite5ee84ca9b7c2b95275fa7ea1100fe8c34a4d695 (patch)
treeda40528c88fe8560c0c8e891144376d602fa3533 /lib/private/connector/sabre
parent95fe55f9e7215e8de77e80ad418e4d199a13fdb5 (diff)
downloadnextcloud-server-e5ee84ca9b7c2b95275fa7ea1100fe8c34a4d695.tar.gz
nextcloud-server-e5ee84ca9b7c2b95275fa7ea1100fe8c34a4d695.zip
- update permissions
- change xml tag to perm
Diffstat (limited to 'lib/private/connector/sabre')
-rw-r--r--lib/private/connector/sabre/filesplugin.php2
-rw-r--r--lib/private/connector/sabre/node.php9
2 files changed, 7 insertions, 4 deletions
diff --git a/lib/private/connector/sabre/filesplugin.php b/lib/private/connector/sabre/filesplugin.php
index e2ff574c455..1d8f28008b3 100644
--- a/lib/private/connector/sabre/filesplugin.php
+++ b/lib/private/connector/sabre/filesplugin.php
@@ -37,7 +37,7 @@ class OC_Connector_Sabre_FilesPlugin extends Sabre_DAV_ServerPlugin
$server->xmlNamespaces[self::NS_OWNCLOUD] = 'oc';
$server->protectedProperties[] = '{' . self::NS_OWNCLOUD . '}id';
- $server->protectedProperties[] = '{' . self::NS_OWNCLOUD . '}permissions';
+ $server->protectedProperties[] = '{' . self::NS_OWNCLOUD . '}perm';
$this->server = $server;
$this->server->subscribeEvent('beforeGetProperties', array($this, 'beforeGetProperties'));
diff --git a/lib/private/connector/sabre/node.php b/lib/private/connector/sabre/node.php
index ca8dcce9e86..ee38dfc8642 100644
--- a/lib/private/connector/sabre/node.php
+++ b/lib/private/connector/sabre/node.php
@@ -252,14 +252,17 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
if ($this->info->isMounted()) {
$p .= 'M';
}
+ if ($this->info->isDeletable()) {
+ $p .= 'D';
+ }
+ if ($this->info->isDeletable()) {
+ $p .= 'N';
+ }
if ($this->info->getType() === \OCP\Files\FileInfo::TYPE_FILE) {
if ($this->info->isUpdateable()) {
$p .= 'W';
}
} else {
- if ($this->info->isDeletable()) {
- $p .= 'D';
- }
if ($this->info->isUpdateable()) {
$p .= 'CK';
}