master
Joey Hess 2008-08-02 13:28:12 -04:00
parent 680cd2fbc3
commit d3cad5d2ca
1 changed files with 1 additions and 2 deletions

View File

@ -226,12 +226,11 @@ sub cgi_prefs ($$) { #{{{
$form->field(name => "sid", type => "hidden", value => $session->id, $form->field(name => "sid", type => "hidden", value => $session->id,
force => 1); force => 1);
$form->field(name => "email", size => 50, fieldset => "preferences"); $form->field(name => "email", size => 50, fieldset => "preferences");
$form->field(name => "banned_users", size => 50,
fieldset => "admin");
my $user_name=$session->param("name"); my $user_name=$session->param("name");
# XXX deprecated, should be removed eventually # XXX deprecated, should be removed eventually
$form->field(name => "banned_users", size => 50, fieldset => "admin");
if (! is_admin($user_name)) { if (! is_admin($user_name)) {
$form->field(name => "banned_users", type => "hidden"); $form->field(name => "banned_users", type => "hidden");
} }