Minor fix in sql query
This commit is contained in:
parent
407fbf450f
commit
33089f2ff2
|
@ -1482,7 +1482,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 IN ('$tags_str') OR tags = '')
|
||||
WHERE id_usuario = '".$config["id_user"]."' AND (tags IN ($tags_str) OR tags = '')
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue