mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#13603 fixed acl
This commit is contained in:
parent
cc4fd9a0c6
commit
c48627cf9a
pandora_console/include
@ -145,6 +145,11 @@ if ($create_net_scan) {
|
||||
}
|
||||
|
||||
if ($create_mail_alert) {
|
||||
if ((bool) check_acl($config['id_user'], 0, 'LM') === false) {
|
||||
ui_print_error_message(__('Unauthorized'));
|
||||
return;
|
||||
}
|
||||
|
||||
include_once '../functions_alerts.php';
|
||||
$id_action = db_get_row_filter('talert_actions', ['name' => 'Email to '.$config['id_user']], 'id')['id'];
|
||||
if (!$id_action) {
|
||||
|
@ -610,12 +610,20 @@ class WelcomeWindow extends Wizard
|
||||
],
|
||||
];
|
||||
|
||||
$fields['load_demo_data'] = __('Load demo data');
|
||||
$fields['wizard_agent'] = __('Agent installation wizard');
|
||||
$fields['check_web'] = __('Create WEB monitoring');
|
||||
$fields['check_connectivity'] = __('Create network monitoring');
|
||||
$fields['check_net'] = __('Discover my network');
|
||||
$fields['check_mail_alert'] = __('Create email alert');
|
||||
if (users_is_admin() === true) {
|
||||
$fields['load_demo_data'] = __('Load demo data');
|
||||
}
|
||||
|
||||
if ((bool) check_acl($config['id_user'], 0, 'AW') === true) {
|
||||
$fields['wizard_agent'] = __('Agent installation wizard');
|
||||
$fields['check_web'] = __('Create WEB monitoring');
|
||||
$fields['check_connectivity'] = __('Create network monitoring');
|
||||
$fields['check_net'] = __('Discover my network');
|
||||
}
|
||||
|
||||
if ((bool) check_acl($config['id_user'], 0, 'LM') === true) {
|
||||
$fields['check_mail_alert'] = __('Create email alert');
|
||||
}
|
||||
|
||||
$inputs[] = [
|
||||
'wrapper' => 'div',
|
||||
|
Loading…
x
Reference in New Issue
Block a user