Browse Source

- update permissions

- change xml tag to perm
tags/v7.0.0alpha2
Thomas Müller 10 years ago
parent
commit
e5ee84ca9b

+ 1
- 1
lib/private/connector/sabre/filesplugin.php View File



$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'));

+ 6
- 3
lib/private/connector/sabre/node.php View File

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';
} }

Loading…
Cancel
Save