diff --git a/bureau/admin/adm_doedit.php b/bureau/admin/adm_doedit.php index 4182e6c1..a43cc3c5 100644 --- a/bureau/admin/adm_doedit.php +++ b/bureau/admin/adm_doedit.php @@ -38,6 +38,23 @@ if (!$admin->enabled) { $subadmin=variable_get("subadmin_restriction"); +$fields = array ( + "uid" => array ("request", "integer", 0), + "enabled" => array ("request", "boolean", true), + "pass" => array ("request", "string", ""), + "passconf" => array ("request", "string", ""), + "canpass" => array ("request", "boolean", true), + "notes" => array ("request", "string", ""), + "nom" => array ("request", "string", ""), + "prenom" => array ("request", "string", ""), + "nmail" => array ("request", "string", ""), + "type" => array ("request", "string", ""), + "duration" => array ("request", "integer", 0), + "reset_quotas" => array ("request", "boolean", false), +); +getFields($fields); + + if ($subadmin==0 && !$admin->checkcreator($uid)) { __("This page is restricted to authorized staff"); exit(); diff --git a/bureau/admin/adm_edit.php b/bureau/admin/adm_edit.php index 0a46c430..4e4f1040 100644 --- a/bureau/admin/adm_edit.php +++ b/bureau/admin/adm_edit.php @@ -58,9 +58,9 @@ if (!$r=$admin->get($uid)) {
$error
"; + } ?>