From 79db2b2c4573c694162c4c60a6f08dc0df068541 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 21 Jul 2023 19:22:27 +0200 Subject: [PATCH] Add 'calendar_rsvp_actions' option --- plugins/calendar/calendar.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index 345277d6..f231aa7a 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -273,9 +273,13 @@ class calendar extends rcube_plugin $this->itip = new calendar_itip($this); + $rsvp_actions = ['accepted','tentative','declined','delegated']; + if ($this->rc->config->get('kolab_invitation_calendars')) { - $this->itip->set_rsvp_actions(['accepted','tentative','declined','delegated','needs-action']); + $rsvp_actions[] = 'needs-action'; } + + $this->itip->set_rsvp_actions($this->rc->config->get('calendar_rsvp_actions', $rsvp_actions)); } return $this->itip;