diff options
author | Robin Appelman <robin@icewind.nl> | 2025-04-09 15:04:35 +0200 |
---|---|---|
committer | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2025-04-18 07:49:30 +0200 |
commit | 9f87babd5e1951b288914e6748fc89675b9a39b0 (patch) | |
tree | 95f3ef5ed2ce21433403228f64d6b16872d3587e | |
parent | 3a699c637355e375de9a101b3575ab81a4804a4b (diff) | |
download | nextcloud-server-backport/52073/stable30.tar.gz nextcloud-server-backport/52073/stable30.zip |
fix: fix preloading files with no custom propertiesbackport/52073/stable30
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | apps/dav/lib/DAV/CustomPropertiesBackend.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/lib/DAV/CustomPropertiesBackend.php b/apps/dav/lib/DAV/CustomPropertiesBackend.php index 9485e4fe7f4..7b268083976 100644 --- a/apps/dav/lib/DAV/CustomPropertiesBackend.php +++ b/apps/dav/lib/DAV/CustomPropertiesBackend.php @@ -373,7 +373,10 @@ class CustomPropertiesBackend implements BackendInterface { )), ) ->where($query->expr()->eq('parent', $query->createNamedParameter($node->getInternalFileId(), IQueryBuilder::PARAM_INT))) - ->andWhere($query->expr()->eq('p.userid', $query->createNamedParameter($this->user->getUID()))); + ->andWhere($query->expr()->orX( + $query->expr()->eq('p.userid', $query->createNamedParameter($this->user->getUID())), + $query->expr()->isNull('p.userid'), + )); $result = $query->executeQuery(); $propsByPath = []; |