* Calendar - fix event owner and chair were always getting update notifications, regardless of preference

This commit is contained in:
nathangray 2019-08-26 10:45:14 -06:00
parent 74d6322414
commit 94782bee06

View File

@ -655,7 +655,7 @@ class calendar_boupdate extends calendar_bo
} }
} }
case 'add_cancel': case 'add_cancel':
if ($msg_is_response && ($old_event['owner'] == $userid || $role == 'CHAIR') || if ($msg_is_response && ($old_event['owner'] == $userid || $role == 'CHAIR') &&
$msg_type == MSG_DELETED || $msg_type == MSG_ADDED || $msg_type == MSG_DISINVITE) $msg_type == MSG_DELETED || $msg_type == MSG_ADDED || $msg_type == MSG_DISINVITE)
{ {
++$want_update; ++$want_update;