summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Controller
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2021-10-08 16:34:43 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2021-10-08 18:12:37 +0200
commitfab887cb7c577a3e70219e686707bb52e0bc9bbe (patch)
tree05207504dc8e3ac1738265ba9170d6d8d0d875bd /apps/dav/lib/Controller
parent35be21dbb7d3f32405c9813694ad61c2393114d8 (diff)
downloadnextcloud-server-fab887cb7c577a3e70219e686707bb52e0bc9bbe.tar.gz
nextcloud-server-fab887cb7c577a3e70219e686707bb52e0bc9bbe.zip
Update attendence for external users
For local users it's possible to select their calendar via the principal url and first update their own attendance status. External users have no calendar event hence the recipient is the organizer. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/dav/lib/Controller')
-rw-r--r--apps/dav/lib/Controller/InvitationResponseController.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/dav/lib/Controller/InvitationResponseController.php b/apps/dav/lib/Controller/InvitationResponseController.php
index 9dbe43199d8..de22e3ba6a9 100644
--- a/apps/dav/lib/Controller/InvitationResponseController.php
+++ b/apps/dav/lib/Controller/InvitationResponseController.php
@@ -198,7 +198,12 @@ class InvitationResponseController extends Controller {
$iTipMessage->method = 'REPLY';
$iTipMessage->sequence = $row['sequence'];
$iTipMessage->sender = $row['attendee'];
- $iTipMessage->recipient = $row['attendee'];
+
+ if ($this->responseServer->isExternalAttendee($row['attendee'])) {
+ $iTipMessage->recipient = $row['organizer'];
+ } else {
+ $iTipMessage->recipient = $row['attendee'];
+ }
$message = <<<EOF
BEGIN:VCALENDAR