mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Always hide the contacts associated with user accounts from calendar owner options, we just show the accounts.
This commit is contained in:
parent
775e92a89f
commit
f0b3a50d0f
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user