aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-10-17 18:08:25 +0200
committerRobin Appelman <robin@icewind.nl>2024-12-04 19:19:08 +0100
commit88c685f27c39e39f05da231968c53117a97aedfb (patch)
treea931b01560a44500b5e5fd716c5050d6d4b7eb66 /lib
parent0e10bb59a196af4b75cbd5a4ef786be059d97b29 (diff)
downloadnextcloud-server-88c685f27c39e39f05da231968c53117a97aedfb.tar.gz
nextcloud-server-88c685f27c39e39f05da231968c53117a97aedfb.zip
fix: store unmaked source permissions as scan_permissions when loading share cache items
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Cache/Cache.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index da798af46cd..aa60ad56334 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -168,6 +168,9 @@ class Cache implements ICache {
if ($data['storage_mtime'] == 0) {
$data['storage_mtime'] = $data['mtime'];
}
+ if (isset($data['f_permissions'])) {
+ $data['scan_permissions'] = $data['f_permissions'];
+ }
$data['permissions'] = (int)$data['permissions'];
if (isset($data['creation_time'])) {
$data['creation_time'] = (int)$data['creation_time'];