From f8d900ee75e08005baf22444d79393eca78e72bb Mon Sep 17 00:00:00 2001 From: fermin831 Date: Mon, 9 Apr 2018 13:37:55 +0200 Subject: [PATCH] [Secondary groups] Fixed select all group on Profiles/Groups assigned --- pandora_console/include/functions_profile.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_profile.php b/pandora_console/include/functions_profile.php index 7fc71843de..4876969d9e 100644 --- a/pandora_console/include/functions_profile.php +++ b/pandora_console/include/functions_profile.php @@ -173,6 +173,7 @@ function profile_check_group_mode($user_id, $group_id, $is_secondary) { * @param bool Show the tags select or not */ function profile_print_profile_table ($id, $title, $is_secondary = false) { + global $config; $is_secondary = enterprise_installed() ? $is_secondary : false; @@ -265,7 +266,7 @@ function profile_print_profile_table ($id, $title, $is_secondary = false) { } $data[1] = html_print_select_groups($config['id_user'], "UM", - $own_info['is_admin'], 'assign_group', -1, '', __('None'), -1, true, + users_is_admin($config['id_user']), 'assign_group', -1, '', __('None'), -1, true, false, false); if (!$is_secondary) {