* CalDAV/Calendar: fix accepting invitations with an not attending organizer adds organizer as attendee

Before we added a not attending organizer as attendee with status DELEGATED, now we no longer add him as attendee at all.
This commit is contained in:
Ralf Becker 2018-08-06 18:20:07 +02:00
parent 42736c833c
commit 17f8e3016b

View File

@ -572,20 +572,6 @@ class calendar_ical extends calendar_boupdate
$organizerURL = empty($organizerEMail) ? '' : 'mailto:' . $organizerEMail;
}
$organizerUID = $event['owner'];
if (!isset($event['participants'][$event['owner']]))
{
$options = array(
'ROLE' => 'CHAIR',
'PARTSTAT' => 'DELEGATED',
'CUTYPE' => 'INDIVIDUAL',
//'RSVP' => 'FALSE',
);
if (!empty($organizerCN)) $options['CN'] = $organizerCN;
if (!empty($organizerEMail)) $options['EMAIL'] = $organizerEMail;
if (!empty($event['owner'])) $options['X-EGROUPWARE-UID'] = $event['owner'];
$attributes['ATTENDEE'][] = $organizerURL;
$parameters['ATTENDEE'][] = $options;
}
}
// do NOT use ORGANIZER for events without further participants or a different organizer
if (count($event['participants']) > 1 || !isset($event['participants'][$event['owner']]))