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

Commit

Permalink
Call the getAccessGroups method from CentreonACL.class.php instead of…
Browse files Browse the repository at this point in the history
… accessing the private property accessGroups directly (#6784)
  • Loading branch information
callapa authored Oct 10, 2018
1 parent ed1255c commit 7291bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Centreon/Domain/Repository/TopologyRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getReactTopologiesPerUserWithAcl($user)
$topologyUrls[] = $topologyUrl['topology_url'];
}
} else {
if (count($user->access->accessGroups) > 0){
if (count($user->access->getAccessGroups()) > 0){
$query = "SELECT DISTINCT acl_group_topology_relations.acl_topology_id "
. "FROM acl_group_topology_relations, acl_topology, acl_topology_relations "
. "WHERE acl_topology_relations.acl_topo_id = acl_topology.acl_topo_id "
Expand Down

0 comments on commit 7291bf7

Please sign in to comment.