diff --git a/pandora_console/operation/users/user_edit.php b/pandora_console/operation/users/user_edit.php index db3b37a474..9117bd9ad7 100644 --- a/pandora_console/operation/users/user_edit.php +++ b/pandora_console/operation/users/user_edit.php @@ -349,7 +349,7 @@ if ($own_info['is_admin'] || check_acl($config['id_user'], 0, 'PM')) { $usr_groups = (users_get_groups($config['id_user'], 'AR', $display_all_group)); $id_usr = $config['id_user']; - +$skin = ''; if (!$meta) { $home_screen = '

'.__('Home screen').ui_print_help_tip(__('User can customize the home page. By default, will display \'Agent Detail\'. Example: Select \'Other\' and type index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=1 to show agent detail view'), true).'

'; $values = [ @@ -394,16 +394,25 @@ if (!$meta) { $home_screen .= html_print_select($layouts_aux, 'visual_console', $user_info['data_section'], '', '', '', true); $home_screen .= '
'; $home_screen .= html_print_input_text('data_section', $user_info['data_section'], '', 60, 255, true, false); + + // User only can change skins if has more than one group. + if (function_exists('skins_print_select')) { + if (count($usr_groups) > 1) { + $skin = '

'.__('Skin').':

'; + $skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'
'; + } + } } else { $home_screen = ''; -} - -// User only can change skins if has more than one group. -$skin = ''; -if (function_exists('skins_print_select')) { - if (count($usr_groups) > 1) { - $skin = '

'.__('Skin').':

'; - $skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'
'; + // User only can change skins if has more than one group. + if (function_exists('skins_print_select')) { + if (count($usr_groups) > 1) { + $skin = '

'.__('Skin').ui_print_help_tip( + __('This change will only apply to nodes'), + true + ).'

'; + $skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'
'; + } } }