summaryrefslogtreecommitdiff
path: root/httemplate/search/report_cust_credit.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/search/report_cust_credit.html')
-rw-r--r--httemplate/search/report_cust_credit.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/httemplate/search/report_cust_credit.html b/httemplate/search/report_cust_credit.html
index ab481025e..993209763 100644
--- a/httemplate/search/report_cust_credit.html
+++ b/httemplate/search/report_cust_credit.html
@@ -42,6 +42,9 @@
<%init>
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+
my $sth = dbh->prepare("SELECT DISTINCT otaker FROM cust_credit")
or die dbh->errstr;
$sth->execute or die $sth->errstr;