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 ) {