Fix Sharing: Includes resource that themselves carry a direct ACL grant and are leaves

This commit is contained in:
Maurus Decimus
2026-05-25 16:21:57 +02:00
parent e7f532ec6d
commit 9b72c0a32b
2 changed files with 7 additions and 0 deletions

View File

@@ -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

View File

@@ -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)