diff options
author | Robin Appelman <robin@icewind.nl> | 2024-10-17 18:08:56 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-12-04 19:19:08 +0100 |
commit | 6419de7accfdb0d870aeb5cf48ae9ce0ad3cfb43 (patch) | |
tree | bbfa7b26e8d4aee551578737bc1108f6da35d304 /lib/private/Files/Cache | |
parent | 88c685f27c39e39f05da231968c53117a97aedfb (diff) | |
download | nextcloud-server-6419de7accfdb0d870aeb5cf48ae9ce0ad3cfb43.tar.gz nextcloud-server-6419de7accfdb0d870aeb5cf48ae9ce0ad3cfb43.zip |
fix: use scan_permissions when copying cache items
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache')
-rw-r--r-- | lib/private/Files/Cache/Cache.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index aa60ad56334..cb841755efd 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -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 { |