diff --git a/bureau/admin/adm_list.php b/bureau/admin/adm_list.php
index b66ceee1..c4db0a6a 100644
--- a/bureau/admin/adm_list.php
+++ b/bureau/admin/adm_list.php
@@ -52,7 +52,6 @@ if ($short != -1) {
}
$subadmin = variable_get("subadmin_restriction", 0);
-
// If we ask for all account but we aren't "admin" and
// subadmin var is not 1
if ($show == "all" && !$subadmin == 1 && $cuid != 2000) {
@@ -61,6 +60,9 @@ if ($show == "all" && !$subadmin == 1 && $cuid != 2000) {
exit();
}
+// show all accounts by default for admin-like accounts
+if (($show=="")&&($subadmin == 1 || $cuid == 2000)) $show=all;
+
if ($pattern && $pattern_type) {
$accountList = $admin->get_list($show == 'all' ? 1 : 0, $creator, $pattern, $pattern_type);
} else {
@@ -86,34 +88,42 @@ if ($mem->user["admlist"] == 0) { // Normal (large) mode