13473-Fix acl widgets Block histogram, Module histogram and Tree view (histogram graph)

This commit is contained in:
Pablo Aragon 2024-04-12 08:53:11 +02:00
parent 3d423c6912
commit d967b7076a
1 changed files with 6 additions and 0 deletions

View File

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