mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
show only events filter in acl groups
This commit is contained in:
parent
f42e57efbe
commit
f55a6685bd
@ -1226,7 +1226,9 @@ $session_time .= html_print_input_text(
|
|||||||
'class="input_line_small"'
|
'class="input_line_small"'
|
||||||
).'</div>';
|
).'</div>';
|
||||||
|
|
||||||
$event_filter_data = db_get_all_rows_sql('SELECT id_name, id_filter FROM tevent_filter');
|
$user_groups = implode(',', array_keys((users_get_groups($config['id_user'], 'AR', $display_all_group))));
|
||||||
|
|
||||||
|
$event_filter_data = db_get_all_rows_sql('SELECT id_name, id_filter FROM tevent_filter WHERE id_group_filter IN ('.$user_groups.')');
|
||||||
if ($event_filter_data === false) {
|
if ($event_filter_data === false) {
|
||||||
$event_filter_data = [];
|
$event_filter_data = [];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user