Fix Calendar: Scheduling invitations on a shared, non-owned calendar fail with MAIL FROM unauthorized

This commit is contained in:
Maurus Decimus
2026-07-19 12:19:50 +02:00
parent 18dbbda298
commit 6076659e4d
6 changed files with 65 additions and 7 deletions

View File

@@ -72,7 +72,9 @@ impl CalendarDeleteRequestHandler for Server {
.by_path(delete_path)
.ok_or(DavError::Code(StatusCode::NOT_FOUND))?;
let document_id = delete_resource.document_id();
let account_info = self.account_info(access_token.account_id()).await?;
let account_info = self
.scheduling_account_info(access_token.account_id(), account_id)
.await?;
let send_itip = self.core.groupware.itip_enabled
&& !headers.no_schedule_reply
&& !account_info.addresses().is_empty()

View File

@@ -112,8 +112,9 @@ impl CalendarUpdateRequestHandler for Server {
));
}
};
let account_info = self
.account_info(access_token.account_id())
.scheduling_account_info(access_token.account_id(), account_id)
.await
.caused_by(trc::location!())?;