mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed permissions error when validating alerts.
This commit is contained in:
parent
b42287f37a
commit
90d600a238
@ -60,7 +60,7 @@ $url = 'index.php?sec=' . $sec . '&sec2=' . $sec2 . '&refr=' . $refr .
|
|||||||
'&filter=' . $filter . '&filter_standby=' . $filter_standby .
|
'&filter=' . $filter . '&filter_standby=' . $filter_standby .
|
||||||
'&ag_group=' . $id_group;
|
'&ag_group=' . $id_group;
|
||||||
|
|
||||||
if ($flag_alert == 1 && check_acl($config['id_user'], $id_group, "AW")) {
|
if (($flag_alert == 1 && check_acl($config['id_user'], $id_group, "AW")) || ($flag_alert == 1 && check_acl($config['id_user'], $id_group, "LM"))) {
|
||||||
forceExecution($id_group);
|
forceExecution($id_group);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,11 +122,11 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($alert_validate) {
|
if ($alert_validate) {
|
||||||
if (check_acl ($config["id_user"], $id_group, "AW") == 0) {
|
if (check_acl ($config["id_user"], $id_group, "AW") || check_acl ($config["id_user"], $id_group, "LM") ) {
|
||||||
ui_print_error_message(__('Insufficient permissions to validate alerts'));
|
validateAlert();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
validateAlert();
|
ui_print_error_message(__('Insufficient permissions to validate alerts'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -514,7 +514,7 @@ if (!empty ($table->data)) {
|
|||||||
html_print_table ($table);
|
html_print_table ($table);
|
||||||
|
|
||||||
if (!defined('METACONSOLE')) {
|
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) {
|
if (count($alerts['alerts_simple']) > 0) {
|
||||||
echo '<div class="action-buttons" style="width: '.$table->width.';">';
|
echo '<div class="action-buttons" style="width: '.$table->width.';">';
|
||||||
html_print_submit_button (__('Validate'), 'alert_validate', false, 'class="sub ok"', false);
|
html_print_submit_button (__('Validate'), 'alert_validate', false, 'class="sub ok"', false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user