mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
handling mailing events: dont add groupmembers if they already rejected the event, or are the current user
This commit is contained in:
parent
6e0d963eb7
commit
29a622e641
@ -668,7 +668,8 @@ class calendar_uiforms extends calendar_ui
|
||||
$GLOBALS['egw']->accounts->get_account_name($uid,$lid,$firstname,$lastname);
|
||||
|
||||
$toadd = $firstname.' '.$lastname.' <'.$email.'>';
|
||||
if (!in_array($toadd,$to)) $to[] = $toadd;
|
||||
// dont add groupmembers if they already rejected the event, or are the current user
|
||||
if (!in_array($toadd,$to) && ($event['participants'][$uid] !== 'R' && $uid != $this->user)) $to[] = $toadd;
|
||||
}
|
||||
}
|
||||
elseif(($info = $this->bo->resource_info($uid)))
|
||||
|
Loading…
Reference in New Issue
Block a user