diff --git a/bureau/admin/adm_list.php b/bureau/admin/adm_list.php index 2118c2f4..aa949b77 100644 --- a/bureau/admin/adm_list.php +++ b/bureau/admin/adm_list.php @@ -47,15 +47,16 @@ if ($short!=-1) { $mem->user["admlist"]=$short; } -$subadmin=variable_get("subadmin_restriction"); +$subadmin=variable_get("subadmin_restriction", 0); -if ($subadmin==0 && $show && $cuid != 2000) -{ +// If we ask for all account but we aren't "admin" and +// subadmin var is not 1 +if ($show=="all" && !$subadmin==1 && $cuid != 2000) { +printvar('plop2'); __("This page is restricted to authorized staff"); exit(); } - $r=$admin->get_list($show == 'all' ? 1 : 0, $creator); ?> @@ -63,7 +64,7 @@ $r=$admin->get_list($show == 'all' ? 1 : 0, $creator);