Add owner prop

This commit is contained in:
Lennart
2023-09-07 19:17:50 +02:00
parent e875c04332
commit 620dca2be2

View File

@@ -109,6 +109,7 @@ pub fn generate_propfind_calendar_response(
"supported-calendar-component-set", "supported-calendar-component-set",
"getcontenttype", "getcontenttype",
"calendar-description", "calendar-description",
"owner",
] ]
.iter(), .iter(),
); );
@@ -122,10 +123,8 @@ pub fn generate_propfind_calendar_response(
for prop in props { for prop in props {
match prop { match prop {
"resourcetype" => write_resourcetype(writer, vec!["C:calendar", "collection"])?, "resourcetype" => write_resourcetype(writer, vec!["C:calendar", "collection"])?,
"current-user-principal" => { "current-user-principal" | "owner" => {
writer writer.create_element(prop).write_inner_content(|writer| {
.create_element("current-user-principal")
.write_inner_content(|writer| {
writer writer
.create_element("href") .create_element("href")
.write_text_content(BytesText::new(&format!( .write_text_content(BytesText::new(&format!(