From 80c96e95954fdcca02007e639f1dca4bae6de35a Mon Sep 17 00:00:00 2001 From: Vanessa Gil Date: Fri, 30 Jan 2015 15:54:36 +0100 Subject: [PATCH] Fixed bug when checking acls to delete event. Ticket #1737. --- pandora_console/include/functions_tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_tags.php b/pandora_console/include/functions_tags.php index 98cb2224d8..bd1f69a121 100644 --- a/pandora_console/include/functions_tags.php +++ b/pandora_console/include/functions_tags.php @@ -1417,7 +1417,7 @@ function tags_checks_event_acl($id_user, $id_group, $access, $tags = array(), $c $group_ids = implode(',', $childrens_ids); } $sql = "SELECT id_usuario FROM tusuario_perfil - WHERE id_usuario = '".$config["id_user"]."' AND tags = $tags_user + WHERE id_usuario = '".$config["id_user"]."' AND tags = '$tags_user' AND id_perfil IN (SELECT id_perfil FROM tperfil WHERE ".get_acl_column($access)."=1) AND id_grupo IN ($group_ids)"; $has_perm = db_get_value_sql ($sql);