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

Commit

Permalink
fix(acl): service_id is no longer NULL
Browse files Browse the repository at this point in the history
Since PR #6366, all values for host are: <host_id>,0 and not <host_id>,NULL
  • Loading branch information
lpinsivy authored Nov 26, 2018
1 parent 9e24eb8 commit b41f402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/include/configuration/configObject/host/listHost.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
if (!$centreon->user->admin) {
$aclFrom = ", {$aclDbName}.centreon_acl acl";
$aclCond =
' AND h.host_id = acl.host_id AND acl.service_id IS NULL '
' AND h.host_id = acl.host_id AND acl.service_id = 0 '
. 'AND acl.group_id IN (' . $acl->getAccessGroupsString() . ') ';
}

Expand Down Expand Up @@ -522,4 +522,4 @@ function setO(_i) {

$tpl->assign("StatusFilter", $statusFilter);

$tpl->display("listHost.ihtml");
$tpl->display("listHost.ihtml");

0 comments on commit b41f402

Please sign in to comment.