fixed sql error with secundary groups ZOS

This commit is contained in:
marcos 2020-11-12 12:13:57 +01:00
parent 834b102ad2
commit 915c039fcd
1 changed files with 5 additions and 1 deletions

View File

@ -900,7 +900,11 @@ function tags_get_acl_tags_module_condition($acltags, $modules_table='', $force_
}
$in_group = implode(',', $without_tags);
$condition .= sprintf('(tagente.id_grupo IN (%s) OR tasg.id_group IN (%s))', $in_group, $in_group);
if ($has_secondary) {
$condition .= sprintf('(tagente.id_grupo IN (%s) OR tasg.id_group IN (%s))', $in_group, $in_group);
} else {
$condition .= sprintf('(tagente.id_grupo IN (%s))', $in_group);
}
}
$condition = !empty($condition) ? "($condition)" : '';