From d967b7076a9abf17b899a8fac2d628914af5e908 Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Fri, 12 Apr 2024 08:53:11 +0200 Subject: [PATCH] 13473-Fix acl widgets Block histogram, Module histogram and Tree view (histogram graph) --- pandora_console/include/functions_events.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index eba07feece..856d91575c 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1674,6 +1674,12 @@ function events_get_all( } } + if (!$user_is_admin && users_can_manage_group_all('ER') === false) { + if (str_contains($fields[0], 'te.id_grupo') === false) { + $fields[0] .= ', te.id_grupo'; + } + } + if (((int) $filter['group_rep'] === EVENT_GROUP_REP_EVENTS || (int) $filter['group_rep'] === EVENT_GROUP_REP_EXTRAIDS) && $count === false ) {