From 9b72c0a32b1b03f439690851707403e196e2c7be Mon Sep 17 00:00:00 2001 From: Maurus Decimus <11444311+mdecimus@users.noreply.github.com> Date: Mon, 25 May 2026 16:21:57 +0200 Subject: [PATCH] Fix Sharing: Includes resource that themselves carry a direct ACL grant and are leaves --- CHANGELOG.md | 1 + crates/common/src/sharing/resources.rs | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5aed8583..4c00a06c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ If you are upgrading from v0.16.x, replace the binary (or run `docker pull`). If ## Fixed - Log rejected messages to tracing store. - MTA: Always update next DSN notify times. +- Sharing: Includes resource that themselves carry a direct ACL grant and are leaves. ## [0.16.6] - 2026-05-20 diff --git a/crates/common/src/sharing/resources.rs b/crates/common/src/sharing/resources.rs index f51dd180..c12fc56c 100644 --- a/crates/common/src/sharing/resources.rs +++ b/crates/common/src/sharing/resources.rs @@ -47,6 +47,12 @@ impl DavResources { if !shared_containers.is_empty() { let mut document_ids = RoaringBitmap::new(); + for resource in &self.resources { + if !resource.is_container() && shared_containers.contains(resource.document_id) { + document_ids.insert(resource.document_id); + } + } + for path in &self.paths { if let Some(parent_id) = path.parent_id && shared_containers.contains(parent_id)