Fixed in the function 'agents_get_group_agents' get agents with noACL flag is setted. TICKET: #3166

This commit is contained in:
mdtrooper 2015-12-31 12:35:07 +01:00
parent 60698183e8
commit 42875d7e96
1 changed files with 7 additions and 2 deletions

View File

@ -770,13 +770,18 @@ function agents_get_group_agents ($id_group = 0, $search = false, $case = "lower
if ($childGroups) {
if (is_array($id_group)) {
foreach ($id_group as $parent) {
$id_group = array_merge($id_group, groups_get_id_recursive($parent, true));
$id_group = array_merge($id_group,
groups_get_id_recursive($parent, true));
}
}
else {
$id_group = groups_get_id_recursive($id_group, true);
}
$id_group = array_keys(users_get_groups(false, "AR", true, false, (array)$id_group));
if (!$noACL) {
$id_group = array_keys(
users_get_groups(false, "AR", true, false, (array)$id_group));
}
}
if (is_array($id_group)) {