]> source.dussan.org Git - nextcloud-server.git/commitdiff
- update permissions
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 9 May 2014 15:18:43 +0000 (17:18 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 9 May 2014 15:18:43 +0000 (17:18 +0200)
- change xml tag to perm

lib/private/connector/sabre/filesplugin.php
lib/private/connector/sabre/node.php

index e2ff574c455f86069ee1937db64e77ad34f65b66..1d8f28008b3ca46342b0a1f3a690df7a7840a8e9 100644 (file)
@@ -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'));
index ca8dcce9e8625fb9109974cdb2648beac1c2bdca..ee38dfc8642099da17597c284a88c4d0779ddb3d 100644 (file)
@@ -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';
                        }