mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Improved function agents_get_modules to decrease execution time TICKETS #3518
This commit is contained in:
parent
d678c41723
commit
78d8092e9c
@ -1202,11 +1202,13 @@ function agents_get_modules ($id_agent = null, $details = false,
|
|||||||
|
|
||||||
//$where .= " AND id_policy_module = 0 ";
|
//$where .= " AND id_policy_module = 0 ";
|
||||||
|
|
||||||
$where_tags = tags_get_acl_tags($config['id_user'], $id_groups, 'AR',
|
if (tags_has_user_acl_tags($config['id_user'])){
|
||||||
'module_condition', 'AND', 'tagente_modulo', false, array(),
|
$where_tags = tags_get_acl_tags($config['id_user'], $id_groups, 'AR',
|
||||||
true);
|
'module_condition', 'AND', 'tagente_modulo', false, array(),
|
||||||
|
true);
|
||||||
$where .= "\n\n" . $where_tags;
|
|
||||||
|
$where .= "\n\n" . $where_tags;
|
||||||
|
}
|
||||||
|
|
||||||
$sql = sprintf ('SELECT %s%s
|
$sql = sprintf ('SELECT %s%s
|
||||||
FROM tagente_modulo
|
FROM tagente_modulo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user