fix bug when checking acl permissions with regard to secondary groups in monitor view

This commit is contained in:
alejandro-campos 2019-11-21 16:36:34 +01:00
parent 12123d68df
commit 02780aed41
1 changed files with 2 additions and 1 deletions

View File

@ -1485,7 +1485,8 @@ if (!empty($result)) {
// Avoid the check on the metaconsole. Too slow to show/hide an icon depending on the permissions
if (!is_metaconsole()) {
$acl_graphs = check_acl($config['id_user'], $row['id_group'], 'RR');
$agent_groups = agents_get_all_groups_agent($row['id_agent'], $row['id_group']);
$acl_graphs = check_acl_one_of_groups($config['id_user'], $agent_groups, 'RR');
} else {
$acl_graphs = true;
}