Merge pull request #8111 from nextcloud/only_encrypted_prop_on_folders
Only handle encrypted property on folders
This commit is contained in:
commit
48884c9b6a
1 changed files with 4 additions and 4 deletions
|
@ -339,10 +339,6 @@ class FilesPlugin extends ServerPlugin {
|
|||
}
|
||||
});
|
||||
|
||||
$propFind->handle(self::IS_ENCRYPTED_PROPERTYNAME, function() use ($node) {
|
||||
return $node->getFileInfo()->isEncrypted() ? '1' : '0';
|
||||
});
|
||||
|
||||
$propFind->handle(self::HAS_PREVIEW_PROPERTYNAME, function () use ($node) {
|
||||
return json_encode($this->previewManager->isAvailable($node->getFileInfo()));
|
||||
});
|
||||
|
@ -391,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';
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue