On iTip request fallback to attendee status, not organizer's
When a user has delegator's identities defined and receives an iTip requests from the delegator (as an organizer) that invitation could have been detected as accepted (even if there obviously was no event in users calendar and the status is needs-action/unknown).
This commit is contained in:
parent
d852838c7e
commit
1d72a95549
1 changed files with 10 additions and 10 deletions
|
@ -733,9 +733,9 @@ class libcalendaring_itip
|
|||
'value' => $this->gettext('importtocalendar'),
|
||||
));
|
||||
|
||||
// check my status
|
||||
// check my status as an attendee
|
||||
foreach ($event['attendees'] as $attendee) {
|
||||
if ($attendee['email'] && in_array(strtolower($attendee['email']), $emails)) {
|
||||
if ($attendee['email'] && $attendee['role'] != 'ORGANIZER' && in_array(strtolower($attendee['email']), $emails)) {
|
||||
$metadata['attendee'] = $attendee['email'];
|
||||
$metadata['rsvp'] = $attendee['rsvp'] || $attendee['role'] != 'NON-PARTICIPANT';
|
||||
$rsvp_status = !empty($attendee['status']) ? strtoupper($attendee['status']) : 'NEEDS-ACTION';
|
||||
|
|
Loading…
Add table
Reference in a new issue