diff --git a/pandora_console/godmode/users/configure_profile.php b/pandora_console/godmode/users/configure_profile.php index b1db4e26e9..70342f1fea 100644 --- a/pandora_console/godmode/users/configure_profile.php +++ b/pandora_console/godmode/users/configure_profile.php @@ -404,6 +404,7 @@ if ($id_profile || $new_profile) { html_print_input_hidden('create_profile', 1); } else { html_print_input_hidden('id', $id_profile); + html_print_input_hidden('old_name_profile', $name); html_print_input_hidden('update_profile', 1); html_print_submit_button(__('Update'), 'upd', false, 'class="sub upd"'); } @@ -415,15 +416,53 @@ enterprise_hook('close_meta_frame'); ?> - diff --git a/pandora_console/include/ajax/profile.php b/pandora_console/include/ajax/profile.php new file mode 100644 index 0000000000..56a29fd31d --- /dev/null +++ b/pandora_console/include/ajax/profile.php @@ -0,0 +1,29 @@ +id() - ); - $go_to_agent .= ''; - $go_to_agent .= html_print_submit_button(__('Edit cluster'), 'upd_button', false, 'class="sub config"', true); + $go_to_agent .= ''; + $go_to_agent .= html_print_submit_button(__('Go to cluster edition'), 'upd_button', false, 'class="sub config"', true); } else { $go_to_agent .= ''; $go_to_agent .= html_print_submit_button(__('Go to agent edition'), 'upd_button', false, 'class="sub config"', true); diff --git a/pandora_console/include/lib/Dashboard/Manager.php b/pandora_console/include/lib/Dashboard/Manager.php index a83c982d2a..f22aa7a4f0 100644 --- a/pandora_console/include/lib/Dashboard/Manager.php +++ b/pandora_console/include/lib/Dashboard/Manager.php @@ -695,7 +695,7 @@ class Manager implements PublicLogin // Check ACl. if (\is_user_admin($config['id_user']) !== true) { - // User no admin see dashboards of him groups and profile 'AR'. + // Non-admin user can see dashboards of his groups and 'AR' profile. $group_list = \users_get_groups( $config['id_user'], 'RR', @@ -802,7 +802,7 @@ class Manager implements PublicLogin global $config; if (is_user_admin($config['id_user']) !== false) { - // User no admin see dashboards of him groups and profile 'AR'. + // Non-admin user can see dashboards of his groups and 'AR' profile. $group_list = \users_get_groups( $config['id_user'], 'RR', @@ -820,18 +820,11 @@ class Manager implements PublicLogin $sql_dashboard = sprintf( "SELECT COUNT(*) FROM tdashboard - WHERE (id_group IN (%s) AND id_user = '') OR - id_user = '%s'", - $string_groups, - $config['id_user'] + WHERE (id_group IN (%s))", + $string_groups ); } else { - $sql_dashboard = sprintf( - "SELECT COUNT(*) - FROM tdashboard - WHERE id_group = 0 AND id_user = '%s'", - $config['id_user'] - ); + $sql_dashboard = 'SELECT COUNT(*) FROM tdashboard WHERE id_group = 0'; } } else { $sql_dashboard = 'SELECT COUNT(*) FROM tdashboard'; diff --git a/pandora_console/operation/users/user_edit.php b/pandora_console/operation/users/user_edit.php index 264b892d2c..c1f2e1fee2 100644 --- a/pandora_console/operation/users/user_edit.php +++ b/pandora_console/operation/users/user_edit.php @@ -401,7 +401,7 @@ if (!$meta) { // 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 = '

'.__('Theme').':

'; $skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'
'; } } @@ -410,7 +410,7 @@ if (!$meta) { // 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( + $skin = '

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

';