forked from extern/egroupware
* Addressbook: only add groups as distribution lists, if accounts addressbook is not hidden
This commit is contained in:
parent
e8b08eedbe
commit
250cbb5704
@ -1038,13 +1038,16 @@ class Storage
|
||||
}
|
||||
}
|
||||
|
||||
// add groups for all backends
|
||||
// add groups for all backends, if accounts addressbook is not hidden
|
||||
if (empty($GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts']))
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user