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

Commit

Permalink
Increase perfs on EventLogs for non admin user (#5480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Duret authored and kduret committed Aug 11, 2017
1 parent 538536f commit a173052
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/include/eventLogs/xml/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@
logs.instance_name
FROM logs ".$innerJoinEngineLog.
((!$is_admin) ?
" inner join centreon_acl acl on ((logs.host_id = acl.host_id AND logs.service_id IS NULL) OR "
. " (logs.host_id = acl.host_id AND acl.service_id = logs.service_id)) "
" inner join centreon_acl acl on (logs.host_id = acl.host_id AND (acl.service_id IS NULL OR "
. " acl.service_id = logs.service_id)) "
. " WHERE acl.group_id IN (".$access->getAccessGroupsString().") AND " : "WHERE ")
. " logs.ctime > '$start' AND logs.ctime <= '$end' $whereOutput $msg_req";

Expand Down

0 comments on commit a173052

Please sign in to comment.