fixed problems with validate alerts
This commit is contained in:
parent
8102ed45f9
commit
922a325af1
|
@ -131,11 +131,11 @@ else {
|
|||
}
|
||||
|
||||
if ($alert_validate) {
|
||||
if (check_acl ($config["id_user"], $id_group, "AW") == 0) {
|
||||
ui_print_error_message(__('Insufficient permissions to validate alerts'));
|
||||
if (check_acl ($config["id_user"], $id_group, "AW") || check_acl ($config["id_user"], $id_group, "LM") ) {
|
||||
validateAlert();
|
||||
}
|
||||
else {
|
||||
validateAlert();
|
||||
ui_print_error_message(__('Insufficient permissions to validate alerts'));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -554,7 +554,7 @@ if (!empty ($table->data)) {
|
|||
html_print_table ($table);
|
||||
|
||||
if (!defined('METACONSOLE')) {
|
||||
if (check_acl ($config["id_user"], $id_group, "AW")) {
|
||||
if (check_acl ($config["id_user"], $id_group, "AW") || check_acl ($config["id_user"], $id_group, "LM") ) {
|
||||
if (count($alerts['alerts_simple']) > 0) {
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.';">';
|
||||
html_print_submit_button (__('Validate'), 'alert_validate', false, 'class="sub ok"', false);
|
||||
|
|
Loading…
Reference in New Issue