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