* Calendar: New preference for notifications about events you created, but are not a participant in

This commit is contained in:
nathangray 2019-10-28 15:29:36 -06:00
parent 67c9f137d2
commit 3d865efa38
2 changed files with 13 additions and 0 deletions

View File

@ -632,6 +632,11 @@ class calendar_boupdate extends calendar_bo
}
else
{
// Check if user is not participating, and does not want notifications
if(!$part_prefs['calendar']['receive_not_participating'] && !array_key_exists($userid, $old_event['participants']))
{
return false;
}
switch($ru = $part_prefs['calendar']['receive_updates'])
{
case 'responses':

View File

@ -526,6 +526,14 @@ class calendar_hooks
'admin' => False,
'default'=> 'false',
),
'receive_not_participating' => array(
'type' => 'select',
'label' => 'Receive notifications about events you are not a participant in',
'name' => 'receive_not_participating',
'values' => $yesno,
'help' => 'Do you want to be notified about events you created, but are not participating in?',
'default'=> '1'
),
'notify_externals' => array(
'type' => 'select',
'label' => 'Notify non-EGroupware users about event updates',