* Calendar - allow to invite all users on a distribution list, regardless of calendar permissions

This commit is contained in:
nathangray 2017-08-01 09:02:09 -06:00
parent ecea3d7e00
commit 4ad3c8cb91

View File

@ -449,7 +449,8 @@ class calendar_uiforms extends calendar_ui
// Expand mailing lists
if($type == 'l')
{
foreach($this->bo->enum_mailing_list($participant) as $contact)
// Ignore ACL here, allow inviting anyone in the list
foreach($this->bo->enum_mailing_list($participant, true) as $contact)
{
// Mailing lists can contain users, so allow for that possibility
$_type = is_numeric($contact) ? '' : $contact[0];