mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 02:22:21 +00:00
Implement If-Match, If-None-Match for DELETE method
This commit is contained in:
@@ -90,6 +90,10 @@ impl Resource for CalendarObjectResource {
|
||||
Some(&self.principal)
|
||||
}
|
||||
|
||||
fn get_etag(&self) -> Option<String> {
|
||||
Some(self.object.get_etag())
|
||||
}
|
||||
|
||||
fn get_user_privileges(&self, user: &User) -> Result<UserPrivilegeSet, Self::Error> {
|
||||
Ok(UserPrivilegeSet::owner_only(
|
||||
user.is_principal(&self.principal),
|
||||
|
||||
Reference in New Issue
Block a user