diff options
Diffstat (limited to 'httemplate/config/config-process.cgi')
-rw-r--r-- | httemplate/config/config-process.cgi | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi index 3e49b4f99..d8f0d8e93 100644 --- a/httemplate/config/config-process.cgi +++ b/httemplate/config/config-process.cgi @@ -1,4 +1,5 @@ <%init> + die "access denied\n" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); @@ -27,16 +28,6 @@ foreach my $i ( @config_items ) { } else { $conf->delete($i->key); } - } elsif ( $type eq 'binary' ) { - if ( defined($cgi->param($i->key. $n)) && $cgi->param($i->key. $n) ) { - my $fh = $cgi->upload($i->key. $n); - if (defined($fh)) { - local $/; - $conf->set_binary($i->key, <$fh>); - } - }else{ - warn "Condition failed for " . $i->key; - } } elsif ( $type eq 'checkbox' ) { # if ( defined($cgi->param($i->key. $n)) && $cgi->param($i->key. $n) ) { if ( defined $cgi->param($i->key. $n) ) { @@ -66,5 +57,6 @@ foreach my $i ( @config_items ) { $conf->touch($_) foreach @touch; $conf->delete($_) foreach @delete; } + </%init> <% $cgi->redirect("config-view.cgi") %> |