Merge branch 'ent-4567-Habilitar-borrado-masivo-de-traps-con-permisos-AW' into 'develop'

Changed permissions to delete traps to IM - #4567

See merge request artica/pandorafms!2690
This commit is contained in:
Daniel Rodriguez 2019-10-07 17:08:32 +02:00
commit d198cc3297
1 changed files with 2 additions and 1 deletions

View File

@ -956,7 +956,8 @@ if ($traps !== false) {
}
} else {
$agent_trap_group = db_get_value('id_grupo', 'tagente', 'nombre', $trap['source']);
if ((check_acl($config['id_user'], $agent_trap_group, 'AW'))) {
if ((check_acl($config['id_user'], $agent_trap_group, 'IM'))) {
$data[8] .= '<a href="'.$urlPagination.'&delete='.$trap['id_trap'].'&offset='.$offset.'" onClick="javascript:return confirm(\''.__('Are you sure?').'\')">'.html_print_image('images/cross.png', true, ['border' => '0', 'title' => __('Delete')]).'</a> ';
}
}