* Calendar/EMail: accepting mail invitations sets now external organizer as role CHAIR (externals can not be event-owners), to send replys back to organizer

This commit is contained in:
Ralf Becker 2013-08-29 14:37:01 +00:00
parent 3fa98b8209
commit dc4755efb6

View File

@ -2823,6 +2823,13 @@ class calendar_ical extends calendar_boupdate
if (!isset($vcardData['participants'][$uid]) || if (!isset($vcardData['participants'][$uid]) ||
$vcardData['participants'][$uid][0] != 'A') $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 // for multiple entries the ACCEPT wins
// add quantity and role // add quantity and role
$vcardData['participants'][$uid] = $vcardData['participants'][$uid] =