summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2008-01-17 22:04:33 +0000
committerivan <ivan>2008-01-17 22:04:33 +0000
commit03437de4aba87642a8b6d8e5043b27e6a2531c03 (patch)
treea25999f01f2a4455d0c8a266e95a2843b4d97016
parent9e9ec0df33198dee12cfe7dc6c84cd899834efc7 (diff)
fix error from merging
-rw-r--r--httemplate/search/cust_bill_event.cgi6
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',