Merge pull request #8116 from nextcloud/8111_13

[stable13] Only handle encrypted property on folders
This commit is contained in:
Morris Jobke 2018-01-31 14:46:18 +01:00 committed by GitHub
commit 10110e85eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -339,11 +339,6 @@ class FilesPlugin extends ServerPlugin {
}
});
$propFind->handle(self::IS_ENCRYPTED_PROPERTYNAME, function() use ($node) {
$result = $node->getFileInfo()->isEncrypted() ? '1' : '0';
return $result;
});
$propFind->handle(self::HAS_PREVIEW_PROPERTYNAME, function () use ($node) {
return json_encode($this->previewManager->isAvailable($node->getFileInfo()));
});
@ -392,6 +387,10 @@ class FilesPlugin extends ServerPlugin {
$propFind->handle(self::SIZE_PROPERTYNAME, function() use ($node) {
return $node->getSize();
});
$propFind->handle(self::IS_ENCRYPTED_PROPERTYNAME, function() use ($node) {
return $node->getFileInfo()->isEncrypted() ? '1' : '0';
});
}
}