From dc4755efb6a687841ee8d7abb41cded5d5535475 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 29 Aug 2013 14:37:01 +0000 Subject: [PATCH] * Calendar/EMail: accepting mail invitations sets now external organizer as role CHAIR (externals can not be event-owners), to send replys back to organizer --- calendar/inc/class.calendar_ical.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index fc7d5ae554..c8fd180f34 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -2823,6 +2823,13 @@ class calendar_ical extends calendar_boupdate if (!isset($vcardData['participants'][$uid]) || $vcardData['participants'][$uid][0] != 'A') { + // keep role 'CHAIR' from an external organizer, even if he is a regular participant with a different role + // as this is currently the only way to store an external organizer and send him iMip responses + if (isset($vcardData['participants'][$uid]) && ($s=$vcardData['participants'][$uid]) && + calendar_so::split_status($s, $q, $r) && $r == 'CHAIR') + { + $role = 'CHAIR'; + } // for multiple entries the ACCEPT wins // add quantity and role $vcardData['participants'][$uid] =