diff options
-rw-r--r-- | httemplate/search/cust_bill_event.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/search/cust_bill_event.cgi b/httemplate/search/cust_bill_event.cgi index 06a52dc5d..7d86468bc 100644 --- a/httemplate/search/cust_bill_event.cgi +++ b/httemplate/search/cust_bill_event.cgi @@ -64,8 +64,10 @@ %> <%init> +my $curuser = $FS::CurrentUser::CurrentUser; + die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Billing event reports'); + unless $curuser->access_right('Billing event reports'); my $title = $cgi->param('failed') ? 'Failed invoice events' @@ -113,8 +115,6 @@ my $count_sql = "SELECT COUNT(*) FROM cust_bill_event $join $where"; my $conf = new FS::Conf; -my $failed = $cgi->param('failed'); - my $html_init = join("\n", map { ( my $action = $_ ) =~ s/_$//; include('/elements/progress-init.html', |