use Modern::Perl;
use CGI qw ( -utf8 );
-use Try::Tiny;
+use Try::Tiny qw( catch try );
use C4::Context;
-use C4::Auth;
-use C4::Output;
+use C4::Auth qw( get_template_and_user );
+use C4::Output qw( output_html_with_http_headers );
use Koha::Account::DebitType;
use Koha::Account::DebitTypes;
-my $input = new CGI;
+my $input = CGI->new;
my $code = $input->param('code');
my $op = $input->param('op') || 'list';
my @messages;
template_name => "admin/debit_types.tt",
query => $input,
type => "intranet",
- authnotrequired => 0,
- flagsrequired => { parameters => 'parameters_remaining_permissions' },
- debug => 1,
+ flagsrequired => { parameters => 'manage_accounts' },
}
);