From 6d2c1c126e43569db10cdcdc474da989ab8c28b4 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Tue, 9 Aug 2016 10:22:54 +0200 Subject: [PATCH] Fixed confilcts with onlyOneGroup --- pandora_console/include/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index a9fe4bf03c..0e056c7dd4 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -1771,7 +1771,7 @@ function check_acl($id_user, $id_group, $access, $onlyOneGroup = false) { } $parents_id = array($id_group); - if ($id_group != 0 && $onlyOneGroup == false) { + if ($id_group != 0 && $onlyOneGroup !== true) { $group = db_get_row_filter('tgrupo', array('id_grupo' => $id_group)); $parents = groups_get_parents($group['parent'], true); @@ -1782,7 +1782,7 @@ function check_acl($id_user, $id_group, $access, $onlyOneGroup = false) { // TODO: To reduce this querys in one adding the group condition if necessary (only one line is different) //Joined multiple queries into one. That saves on the query overhead and query cache. - if ($id_group == 0 && $onlyOneGroup == false) { + if ($id_group == 0 && $onlyOneGroup !== true) { $query = sprintf("SELECT tperfil.incident_view, tperfil.incident_edit, tperfil.incident_management, tperfil.agent_view, tperfil.agent_edit, tperfil.alert_edit,