feat(dav): Add show_deleted parameter to get_resource

Fixes #86
This commit is contained in:
Lennart
2025-06-23 16:43:46 +02:00
parent f9de8a4687
commit 6046439fc7
11 changed files with 24 additions and 9 deletions

View File

@@ -85,7 +85,9 @@ pub(crate) async fn route_proppatch<R: ResourceService>(
operations,
) = XmlDocument::parse_str(body).map_err(Error::XmlError)?;
let mut resource = resource_service.get_resource(path_components).await?;
let mut resource = resource_service
.get_resource(path_components, false)
.await?;
let privileges = resource.get_user_privileges(principal)?;
if !privileges.has(&UserPrivilege::Write) {
return Err(Error::Unauthorized.into());