Changes for Feature Request #452020 - Only send out Acceptance/Rejection/Tentative notifications to the owner of the event.

This commit is contained in:
skeeter 2001-08-26 03:08:31 +00:00
parent eb429ea494
commit cd6db0dfad

View File

@ -1569,7 +1569,15 @@
while(list($userid,$statusid) = each($participants))
{
if(intval($userid) != $GLOBALS['phpgw_info']['user']['account_id'])
if((intval($userid) != $GLOBALS['phpgw_info']['user']['account_id']) &&
(
(
($msg_type == MSG_REJECTED || $msg_type == MSG_TENTATIVE || $msg_type == MSG_ACCEPTED) &&
($old_event['owner'] == $userid)
) ||
($msg_type == MSG_DELETED || $msg_type == MSG_MODIFIED || $msg_type == MSG_ADDED)
)
)
{
if($this->debug)
{