From 0a858f292418e6481c5e117be8358ae0cf5a2b40 Mon Sep 17 00:00:00 2001 From: ramonn Date: Mon, 6 Feb 2012 17:25:00 +0000 Subject: [PATCH] 2012-02-06 Ramon Novoa * operation/netflow/nf_live_view.php: Fixed filter load ACL check. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5500 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/operation/netflow/nf_live_view.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 04ce1337e0..5209a26270 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2012-02-06 Ramon Novoa + + * operation/netflow/nf_live_view.php: Fixed filter load ACL check. + 2012-02-06 Miguel de Dios * include/functions_api.php: fixed into function "get_events__with_user" diff --git a/pandora_console/operation/netflow/nf_live_view.php b/pandora_console/operation/netflow/nf_live_view.php index 74da0b9551..c7b3b96806 100644 --- a/pandora_console/operation/netflow/nf_live_view.php +++ b/pandora_console/operation/netflow/nf_live_view.php @@ -162,7 +162,7 @@ echo '
data[2][1] .= __('Advanced') . ' ' . html_print_radio_button_extended ('filter_type', 1, '', $filter_type, false, 'displayAdvancedFilter();', 'style="margin-right: 40px;"', true); $table->data[2][2] = ''.__('Load filter').''; - $user_groups = users_get_groups ($config['id_user'], "AW", $own_info['is_admin'], true); + $user_groups = users_get_groups ($config['id_user'], "AR", $own_info['is_admin'], true); $sql = "SELECT * FROM tnetflow_filter WHERE id_group IN (".implode(',', array_keys ($user_groups)).")"; $table->data[2][3] = html_print_select_from_sql ($sql, 'filter_id', $filter_id, '', __('none'), 0, true); $table->data[2][3] .= html_print_submit_button (__('Load'), 'load_button', false, 'class="sub upd"', true);