Fix Sharing: Includes resource that themselves carry a direct ACL grant and are leaves
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user