mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
fix: use scan_permissions when copying cache items
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
88c685f27c
commit
6419de7acc
1 changed files with 5 additions and 1 deletions
|
|
@ -1186,7 +1186,7 @@ class Cache implements ICache {
|
|||
}
|
||||
|
||||
private function cacheEntryToArray(ICacheEntry $entry): array {
|
||||
return [
|
||||
$data = [
|
||||
'size' => $entry->getSize(),
|
||||
'mtime' => $entry->getMTime(),
|
||||
'storage_mtime' => $entry->getStorageMTime(),
|
||||
|
|
@ -1199,6 +1199,10 @@ class Cache implements ICache {
|
|||
'upload_time' => $entry->getUploadTime(),
|
||||
'metadata_etag' => $entry->getMetadataEtag(),
|
||||
];
|
||||
if ($entry instanceof CacheEntry && isset($entry['scan_permissions'])) {
|
||||
$data['permissions'] = $entry['scan_permissions'];
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function getQueryFilterForStorage(): ISearchOperator {
|
||||
|
|
|
|||
Loading…
Reference in a new issue