mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
restricted action creation on alerts created from policy
This commit is contained in:
parent
2955e14849
commit
f833429695
@ -844,9 +844,11 @@ foreach ($simple_alerts as $alert) {
|
|||||||
['title' => __('Add action')]
|
['title' => __('Add action')]
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$data[4] .= '<a href="javascript:show_add_action(\''.$alert['id'].'\');">';
|
if ((int) $alert['id_policy_alerts'] === 0) {
|
||||||
$data[4] .= html_print_image('images/add.png', true, ['title' => __('Add action')]);
|
$data[4] .= '<a href="javascript:show_add_action(\''.$alert['id'].'\');">';
|
||||||
$data[4] .= '</a>';
|
$data[4] .= html_print_image('images/add.png', true, ['title' => __('Add action')]);
|
||||||
|
$data[4] .= '</a>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user