implemented pending alerts list for event server

This commit is contained in:
alejandro.campos@artica.es 2023-08-01 14:37:16 +02:00
parent 66d2fef3aa
commit 700bb53df4
2 changed files with 3 additions and 3 deletions

View File

@ -243,7 +243,7 @@ foreach ($servers as $server) {
$data[8] .= '</a>';
}
if ($server['type'] === 'event') {
if ($server['type'] === 'event' && (bool) check_acl($config['id_user'], 0, 'LM') === true) {
$data[8] .= '<a class="open-alerts-list-modal" href="">';
$data[8] .= html_print_image(
'images/alert@svg.svg',

View File

@ -124,7 +124,7 @@ class AlertsList
// Check access.
check_login();
if ((bool) check_acl($config['id_user'], 0, 'AR') === false) {
if ((bool) check_acl($config['id_user'], 0, 'LM') === false) {
db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION,
'Trying to access pending alerts list'
@ -171,7 +171,7 @@ class AlertsList
ui_require_css_file('tables');
if (check_acl($config['id_user'], 0, 'AR') === false) {
if ((bool) check_acl($config['id_user'], 0, 'LM') === false) {
db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION,
'Trying to access pending alerts list.'