mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
Respect group filter, if passed
This commit is contained in:
parent
9790ee3ac7
commit
41cf864a73
@ -362,9 +362,10 @@ class accounts
|
||||
break;
|
||||
}
|
||||
$accounts = array();
|
||||
$type = $GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] == 'groupmembers' &&
|
||||
!isset($GLOBALS['egw_info']['user']['apps']['admin']) ? 'groupmembers+memberships' : 'both';
|
||||
foreach(self::getInstance()->search(array(
|
||||
'type' => $GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] == 'groupmembers' &&
|
||||
!isset($GLOBALS['egw_info']['user']['apps']['admin']) ? 'groupmembers+memberships' : 'both',
|
||||
'type' => $options['filter']['group'] ? $options['filter']['group'] : $type,
|
||||
'query' => $pattern,
|
||||
'query_type' => 'all',
|
||||
'order' => $order,
|
||||
|
Loading…
Reference in New Issue
Block a user