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:
commit
d198cc3297
|
@ -956,7 +956,8 @@ if ($traps !== false) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$agent_trap_group = db_get_value('id_grupo', 'tagente', 'nombre', $trap['source']);
|
$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> ';
|
$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> ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue