Solve issue
This commit is contained in:
parent
dda7912511
commit
86d2290961
|
@ -4166,7 +4166,15 @@ function events_page_details($event, $server='')
|
|||
if (!empty($agent)) {
|
||||
$data = [];
|
||||
$data[0] = '<div style="font-weight:normal; margin-left: 20px;">'.__('Name').'</div>';
|
||||
if (can_user_access_node()) {
|
||||
if (can_user_access_node() && is_metaconsole() && agents_check_agent_exists($event['id_agente'], true, true)) {
|
||||
$data[1] = ui_print_truncate_text(
|
||||
$agent['alias'],
|
||||
'agent_medium',
|
||||
true,
|
||||
true,
|
||||
true
|
||||
).ui_print_help_tip(__('This agent belongs to metaconsole, is not possible display it'), true);
|
||||
} else if (can_user_access_node()) {
|
||||
$data[1] = ui_print_agent_name(
|
||||
$event['id_agente'],
|
||||
true,
|
||||
|
|
Loading…
Reference in New Issue