forked from extern/egroupware
* Addressbook: only add groups as distribution lists, if accounts addressbook is not hidden
This commit is contained in:
parent
4182256567
commit
22d216a43e
@ -1038,12 +1038,15 @@ class Storage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// add groups for all backends
|
// add groups for all backends, if accounts addressbook is not hidden
|
||||||
foreach($GLOBALS['egw']->accounts->search(array(
|
if (empty($GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts']))
|
||||||
'type' => 'groups'
|
|
||||||
)) as $account_id => $group)
|
|
||||||
{
|
{
|
||||||
$lists[(string)$account_id] = Api\Accounts::format_username($group['account_lid'], '', '', $account_id);
|
foreach($GLOBALS['egw']->accounts->search(array(
|
||||||
|
'type' => 'groups'
|
||||||
|
)) as $account_id => $group)
|
||||||
|
{
|
||||||
|
$lists[(string)$account_id] = Api\Accounts::format_username($group['account_lid'], '', '', $account_id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $lists;
|
return $lists;
|
||||||
|
Loading…
Reference in New Issue
Block a user