summaryrefslogtreecommitdiff
path: root/httemplate/search
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-08-25 15:31:58 -0700
committerIvan Kohler <ivan@freeside.biz>2017-08-25 15:31:58 -0700
commit50b6d674f27647f8bd97f5e2c03877f2c32d43c1 (patch)
treec5b460978e4528e6fdf9d33571400256be1e6061 /httemplate/search
parentb09e1848dec8bcd74f67de910532d195810590ad (diff)
separate access control for payment reports, RT#77007
Diffstat (limited to 'httemplate/search')
-rwxr-xr-xhttemplate/search/elements/cust_pay_or_refund.html2
-rw-r--r--httemplate/search/elements/report_cust_pay_or_refund.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/search/elements/cust_pay_or_refund.html b/httemplate/search/elements/cust_pay_or_refund.html
index 82b786e57..943e7284b 100755
--- a/httemplate/search/elements/cust_pay_or_refund.html
+++ b/httemplate/search/elements/cust_pay_or_refund.html
@@ -77,7 +77,7 @@ my $conf = FS::Conf->new;
my $money = ($conf->config('money_char') || '$') . '%.2f';
die "access denied"
- unless $curuser->access_right('Financial reports');
+ unless $curuser->access_right('Basic payment and refund reports');
my $table = $opt{'table'} || 'cust_'.$opt{'thing'};
diff --git a/httemplate/search/elements/report_cust_pay_or_refund.html b/httemplate/search/elements/report_cust_pay_or_refund.html
index fc0db63b4..214e3ca98 100644
--- a/httemplate/search/elements/report_cust_pay_or_refund.html
+++ b/httemplate/search/elements/report_cust_pay_or_refund.html
@@ -188,7 +188,7 @@ my $table = 'cust_'.$opt{'thing'};
my $name_singular = $opt{'name_singular'};
die "access denied"
- unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+ unless $FS::CurrentUser::CurrentUser->access_right('Basic payment and refund reports');
my $conf = new FS::Conf;