changing a bit regarding the logic of the new feature (be notified about own changes)

This commit is contained in:
Klaus Leithoff 2010-03-03 12:14:10 +00:00
parent f093aeff24
commit a410651f6f

View File

@ -676,7 +676,9 @@ class calendar_boupdate extends calendar_bo
continue; // dont notify rejected participants or groups continue; // dont notify rejected participants or groups
} }
if($userid != $GLOBALS['egw_info']['user']['account_id'] || $user_prefs['calendar']['receive_own_updates']==1 || $msg_type == MSG_ALARM) if($userid != $GLOBALS['egw_info']['user']['account_id'] ||
($userid == $GLOBALS['egw_info']['user']['account_id'] && $user_prefs['calendar']['receive_own_updates']==1) ||
$msg_type == MSG_ALARM)
{ {
$preferences = CreateObject('phpgwapi.preferences',$userid); $preferences = CreateObject('phpgwapi.preferences',$userid);
$part_prefs = $preferences->read_repository(); $part_prefs = $preferences->read_repository();