show only events filter in acl groups

This commit is contained in:
marcos 2021-10-06 17:11:45 +02:00
parent 3f86528c80
commit f42e57efbe
1 changed files with 2 additions and 1 deletions

View File

@ -438,8 +438,9 @@ if (isset($double_authentication)) {
if (check_acl($config['id_user'], 0, 'ER')) {
$event_filter = '<div class="label_select"><p class="edit_user_labels">'.__('Event filter').'</p>';
$user_groups = implode(',', array_keys((users_get_groups($config['id_user'], 'AR', $display_all_group))));
$event_filter .= html_print_select_from_sql(
'SELECT id_filter, id_name FROM tevent_filter',
'SELECT id_filter, id_name FROM tevent_filter WHERE id_group_filter IN ('.$user_groups.')',
'event_filter',
$user_info['default_event_filter'],
'',