dav: add default implementation for save_resource

This commit is contained in:
Lennart
2024-11-03 23:17:57 +01:00
parent f2d39e3351
commit e9dc8e01d5
7 changed files with 3 additions and 25 deletions

View File

@@ -205,7 +205,9 @@ pub trait ResourceService: Sized + 'static {
}
async fn get_resource(&self) -> Result<Self::Resource, Self::Error>;
async fn save_resource(&self, file: Self::Resource) -> Result<(), Self::Error>;
async fn save_resource(&self, _file: Self::Resource) -> Result<(), Self::Error> {
Err(crate::Error::Unauthorized.into())
}
async fn delete_resource(&self, _use_trashbin: bool) -> Result<(), Self::Error> {
Err(crate::Error::Unauthorized.into())
}