Fix recognizing an organizer in event delete confirmation dialog

It caused that an organizer was presented with "decline invitation" instead of "notify attendees" option.
This commit is contained in:
Aleksander Machniak 2017-06-16 15:37:14 +00:00
parent 72ffafaaf9
commit c718804f36

View file

@ -2558,7 +2558,7 @@ function rcube_calendar_ui(settings)
if (_has_attendees) {
var checked = (settings.itip_notify & 1 ? ' checked="checked"' : '');
if (action == 'remove' && cal.group != 'shared' && is_attendee(event)) {
if (action == 'remove' && cal.group != 'shared' && !_is_organizer && is_attendee(event)) {
decline = true;
checked = event.status != 'CANCELLED' ? checked : '';
html += '<div class="message">' +