Commit fb534539 authored by AssanDiomande's avatar AssanDiomande
Browse files

fix(typology) : display submenu subsections for non admin users (#10389)

* display sublenu subsections for non admin users

* display sublenu subsections for non admin users
parent 979e4d86
...@@ -44,9 +44,9 @@ use PDO; ...@@ -44,9 +44,9 @@ use PDO;
class TopologyRepository extends ServiceEntityRepository class TopologyRepository extends ServiceEntityRepository
{ {
const ACL_ACCESS_NONE = 0; private const ACL_ACCESS_NONE = 0;
const ACL_ACCESS_READ_WRITE = 1; private const ACL_ACCESS_READ_WRITE = 1;
const ACL_ACCESS_READ_ONLY = 2; private const ACL_ACCESS_READ_ONLY = 2;
/** /**
* Disable Menus for a Master-to-Remote transition * Disable Menus for a Master-to-Remote transition
...@@ -164,7 +164,7 @@ class TopologyRepository extends ServiceEntityRepository ...@@ -164,7 +164,7 @@ class TopologyRepository extends ServiceEntityRepository
$whereClause = false; $whereClause = false;
if (!$user->access->admin) { 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; $whereClause = true;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment