diff options
-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 bc3c146875b..c41ecd8450e 100644 --- a/apps/dav/lib/DAV/CustomPropertiesBackend.php +++ b/apps/dav/lib/DAV/CustomPropertiesBackend.php @@ -350,7 +350,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 = []; |