Always hide the contacts associated with user accounts from calendar owner options, we just show the accounts.

This commit is contained in:
nathangray 2017-03-09 13:16:57 -07:00
parent 775e92a89f
commit f0b3a50d0f

View File

@ -161,11 +161,10 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
if($type == '')
{
$account_options = $options + array('account_type' => 'both');
$_results += Api\Accounts::link_query($query, $account_options);
$_results += $remove_contacts = Api\Accounts::link_query($query, $account_options);
if (!empty($_REQUEST['checkgrants']))
{
$grants = $GLOBALS['egw']->acl->get_grants('calendar');
$remove_contacts = array_diff_key($_results, $grants);
$_results = array_intersect_key($_results, $grants);
}
}