security(authz): a shared item must not return it's full path

This commit is contained in:
Edouard Vanbelle
2026-05-24 01:46:51 +02:00
parent 093c1ad3a5
commit 143b13d7bc
3 changed files with 32 additions and 2 deletions
+2 -2
View File
@@ -384,7 +384,7 @@ pub async fn list_shared_with_me(
permissions: summary.permissions.iter().map(|p| (*p).into()).collect(),
granted_at: summary.granted_at,
granted_by: summary.granted_by,
file: Some(file_dto.clone()),
file: Some(file_dto.clone().without_hierarchy_info()),
folder: None,
});
}
@@ -415,7 +415,7 @@ pub async fn list_shared_with_me(
granted_at: summary.granted_at,
granted_by: summary.granted_by,
file: None,
folder: Some(folder_dto.clone()),
folder: Some(folder_dto.clone().without_hierarchy_info()),
});
}
Err(e) if e.kind == ErrorKind::NotFound => {