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

Commit

Permalink
fix(typology) : display submenu subsections for non admin users (#10389)
Browse files Browse the repository at this point in the history
* display sublenu subsections for non admin users

* display sublenu subsections for non admin users
  • Loading branch information
AssanDiomande committed Nov 19, 2021
1 parent 979e4d8 commit fb53453
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Centreon/Domain/Repository/TopologyRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@

class TopologyRepository extends ServiceEntityRepository
{
const ACL_ACCESS_NONE = 0;
const ACL_ACCESS_READ_WRITE = 1;
const ACL_ACCESS_READ_ONLY = 2;
private const ACL_ACCESS_NONE = 0;
private const ACL_ACCESS_READ_WRITE = 1;
private const ACL_ACCESS_READ_ONLY = 2;

/**
* Disable Menus for a Master-to-Remote transition
Expand Down Expand Up @@ -164,7 +164,7 @@ public function getTopologyList(CentreonUser $user): array

$whereClause = false;
if (!$user->access->admin) {
$query .= ' WHERE topology_page IN (' . $user->access->getTopologyString() . ')';
$query .= ' WHERE topology_page IN (' . $user->access->getTopologyString() . ') OR topology_page IS NULL';
$whereClause = true;
}

Expand Down

0 comments on commit fb53453

Please sign in to comment.