Skip to content
Snippets Groups Projects
Commit e5ee84ca authored by Thomas Müller's avatar Thomas Müller
Browse files

- update permissions

- change xml tag to perm
parent 95fe55f9
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ class OC_Connector_Sabre_FilesPlugin extends Sabre_DAV_ServerPlugin ...@@ -37,7 +37,7 @@ class OC_Connector_Sabre_FilesPlugin extends Sabre_DAV_ServerPlugin
$server->xmlNamespaces[self::NS_OWNCLOUD] = 'oc'; $server->xmlNamespaces[self::NS_OWNCLOUD] = 'oc';
$server->protectedProperties[] = '{' . self::NS_OWNCLOUD . '}id'; $server->protectedProperties[] = '{' . self::NS_OWNCLOUD . '}id';
$server->protectedProperties[] = '{' . self::NS_OWNCLOUD . '}permissions'; $server->protectedProperties[] = '{' . self::NS_OWNCLOUD . '}perm';
$this->server = $server; $this->server = $server;
$this->server->subscribeEvent('beforeGetProperties', array($this, 'beforeGetProperties')); $this->server->subscribeEvent('beforeGetProperties', array($this, 'beforeGetProperties'));
......
...@@ -252,14 +252,17 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr ...@@ -252,14 +252,17 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
if ($this->info->isMounted()) { if ($this->info->isMounted()) {
$p .= 'M'; $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->getType() === \OCP\Files\FileInfo::TYPE_FILE) {
if ($this->info->isUpdateable()) { if ($this->info->isUpdateable()) {
$p .= 'W'; $p .= 'W';
} }
} else { } else {
if ($this->info->isDeletable()) {
$p .= 'D';
}
if ($this->info->isUpdateable()) { if ($this->info->isUpdateable()) {
$p .= 'CK'; $p .= 'CK';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment