implemented pending alerts list for event server
This commit is contained in:
parent
66d2fef3aa
commit
700bb53df4
|
@ -243,7 +243,7 @@ foreach ($servers as $server) {
|
||||||
$data[8] .= '</a>';
|
$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] .= '<a class="open-alerts-list-modal" href="">';
|
||||||
$data[8] .= html_print_image(
|
$data[8] .= html_print_image(
|
||||||
'images/alert@svg.svg',
|
'images/alert@svg.svg',
|
||||||
|
|
|
@ -124,7 +124,7 @@ class AlertsList
|
||||||
// Check access.
|
// Check access.
|
||||||
check_login();
|
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(
|
db_pandora_audit(
|
||||||
AUDIT_LOG_ACL_VIOLATION,
|
AUDIT_LOG_ACL_VIOLATION,
|
||||||
'Trying to access pending alerts list'
|
'Trying to access pending alerts list'
|
||||||
|
@ -171,7 +171,7 @@ class AlertsList
|
||||||
|
|
||||||
ui_require_css_file('tables');
|
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(
|
db_pandora_audit(
|
||||||
AUDIT_LOG_ACL_VIOLATION,
|
AUDIT_LOG_ACL_VIOLATION,
|
||||||
'Trying to access pending alerts list.'
|
'Trying to access pending alerts list.'
|
||||||
|
|
Loading…
Reference in New Issue