2011-02-21 Miguel de Dios <miguel.dedios@artica.es>

* godmode/alerts/alert_list.builder.php: added the conditional to hide the
	create template or action when the user haven't privileges for this action.
	
	Fixes: #3182535



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2011-02-21 11:42:14 +00:00
parent b73275af69
commit 795f264cd0
2 changed files with 19 additions and 9 deletions

View File

@ -1,3 +1,10 @@
2011-02-21 Miguel de Dios <miguel.dedios@artica.es>
* godmode/alerts/alert_list.builder.php: added the conditional to hide the
create template or action when the user haven't privileges for this action.
Fixes: #3182535
2011-02-21 Ramon Novoa <rnovoa@artica.es>
* operation/agentes/alerts_status.php: Fixed ACL check for alerts.

View File

@ -78,11 +78,12 @@ $table->data[1][1] = print_select (index_array ($templates, 'id', 'name'),
'template', '', '', __('Select'), 0, true);
$table->data[1][1] .= ' <a class="template_details invisible" href="#">' .
print_image("images/zoom.png", true, array("class" => 'img_help')) . '</a>';
$table->data[1][1] .= print_image ('images/add.png', true);
$table->data[1][1] .= '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template">';
$table->data[1][1] .= __('Create Template');
$table->data[1][1] .= '</a>';
if (give_acl ($config['id_user'], 0, "LM")) {
$table->data[1][1] .= print_image ('images/add.png', true);
$table->data[1][1] .= '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template">';
$table->data[1][1] .= __('Create Template');
$table->data[1][1] .= '</a>';
}
$table->data[2][0] = __('Actions');
@ -100,10 +101,12 @@ $table->data[2][1] .= print_input_text ('fires_max', '', '', 4, 10, true);
$table->data[2][1] .= print_help_icon ("alert-matches", true);
$table->data[2][1] .= '</span>';
$table->data[2][1] .= '</div>';
$table->data[2][1] .= print_image ('images/add.png', true);
$table->data[2][1] .= '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_action">';
$table->data[2][1] .= __('Create Action');
$table->data[2][1] .= '</a>';
if (give_acl ($config['id_user'], 0, "LM")) {
$table->data[2][1] .= print_image ('images/add.png', true);
$table->data[2][1] .= '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_action">';
$table->data[2][1] .= __('Create Action');
$table->data[2][1] .= '</a>';
}
$table->data[3][0] = __('Threshold');
$table->data[3][1] = print_input_text ('module_action_threshold', '', '', 4, 10, true) . print_help_icon ('action_threshold', true);