Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(acl): Host calculation with ACL is not correct (#6436)
Browse files Browse the repository at this point in the history
For users with ACL, the SQL request get the list of all host / service couple and not only host list.
  • Loading branch information
lpinsivy authored and kduret committed Oct 19, 2018
1 parent 6096742 commit 259c8c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
$rq1 .= $searchStr .
"GROUP BY hg.name, h.state";
} else {
$rq1 = "SELECT hg.name as alias, h.state, count(h.host_id) AS nb " .
$rq1 = "SELECT hg.name as alias, h.state, count(DISTINCT h.host_id) AS nb " .
"FROM centreon_acl acl, hosts_hostgroups hhg, hosts h, hostgroups hg " .
"WHERE hg.hostgroup_id = hhg.hostgroup_id " .
"AND hhg.host_id = h.host_id " .
Expand Down

0 comments on commit 259c8c1

Please sign in to comment.