diff --git a/pandora_console/general/logon_ok.php b/pandora_console/general/logon_ok.php index cdbc09c9f9..f705e88ea1 100644 --- a/pandora_console/general/logon_ok.php +++ b/pandora_console/general/logon_ok.php @@ -153,7 +153,7 @@ $table->rowclass[] = ''; $table->data[] = $tdata; // Users. -if (users_is_admin()) { +if (users_is_admin() || check_acl($config['id_user'], 0, 'UM')) { $tdata = []; $tdata[0] = reporting_get_stats_users($data); $table->rowclass[] = ''; diff --git a/pandora_console/godmode/users/user_list.php b/pandora_console/godmode/users/user_list.php index 8fb461a355..0562b478a1 100644 --- a/pandora_console/godmode/users/user_list.php +++ b/pandora_console/godmode/users/user_list.php @@ -419,7 +419,7 @@ else { $result = array_intersect($g, $own_groups); // Show users without profile too. - if (!$usr['is_admin'] && !empty($result) || (!$usr['is_admin'] && db_get_all_rows_field_filter('tusuario_perfil', 'id_usuario', $usr['id_user']) === false)) { + if (!empty($result) || (db_get_all_rows_field_filter('tusuario_perfil', 'id_usuario', $usr['id_user']) === false)) { $info[$key] = $usr; }