mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 20:44:28 +01:00
Adjust 'Group' account search keyword so even if someone searches for 'Group', we still respect the 'type' parameter and only return user accounts if that was what was requested.
This commit is contained in:
parent
535146877c
commit
2876a2838c
@ -199,7 +199,9 @@ class Accounts
|
||||
|
||||
// Check for lang(Group) in search - if there, we search all groups
|
||||
$group_index = array_search(strtolower(lang('Group')), array_map('strtolower', $query = explode(' ',$param['query'])));
|
||||
if($group_index !== FALSE)
|
||||
if($group_index !== FALSE && !(
|
||||
in_array($param['type'], array('accounts', 'groupmembers')) || is_int($param['type'])
|
||||
))
|
||||
{
|
||||
// do not return any groups for account-selection == "none"
|
||||
if ($GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] === 'none' &&
|
||||
|
Loading…
Reference in New Issue
Block a user