From 526f76d7d164badd1da3f2001da0469e8d4853ac Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Wed, 20 Sep 2017 12:08:31 +0200 Subject: [PATCH] Added minor change to fix this issue --- pandora_console/include/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index c5830bfbfa..f8edfd1d27 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -1809,10 +1809,12 @@ function check_acl($id_user, $id_group, $access, $onlyOneGroup = false) { $three_eyes_crow_groups = db_get_all_rows_sql("SELECT tperfil.*, tusuario_perfil.id_perfil FROM tperfil, tusuario_perfil WHERE tusuario_perfil.id_usuario = '" . $id_user . "' AND tusuario_perfil.id_grupo = 0 AND tusuario_perfil.id_perfil = tperfil.id_perfil"); + if ($three_eyes_crow_groups && !empty($three_eyes_crow_groups)) { $acl_column = get_acl_column($access); + foreach ($three_eyes_crow_groups as $three_eyes_crow_group) { - if (isset($three_eyes_crow_group[$acl_column])) { + if (isset($three_eyes_crow_group[$acl_column]) && $three_eyes_crow_group[$acl_column] == 1) { return 1; } }