summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_pay_batch.cgi
diff options
context:
space:
mode:
authorivan <ivan>2008-10-16 05:29:00 +0000
committerivan <ivan>2008-10-16 05:29:00 +0000
commit626dbc1a49b6b1dfba94584670a0a0b11ac52148 (patch)
treed2d26f5e458c5d10412be8265180ea78d947bad1 /httemplate/search/cust_pay_batch.cgi
parent1f67114ee822735e096a6dca47f94635a158b9e4 (diff)
add batch-enable_payby and realtime_disable_payby for better control over hybrid realtime/batch installs; deprecate never-used paymentforcedtobatch, RT#4052
Diffstat (limited to 'httemplate/search/cust_pay_batch.cgi')
-rwxr-xr-xhttemplate/search/cust_pay_batch.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/search/cust_pay_batch.cgi b/httemplate/search/cust_pay_batch.cgi
index 60dca8cba..157696366 100755
--- a/httemplate/search/cust_pay_batch.cgi
+++ b/httemplate/search/cust_pay_batch.cgi
@@ -63,7 +63,9 @@ die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Financial reports')
|| $FS::CurrentUser::CurrentUser->access_right('Process batches')
|| ( $cgi->param('custnum')
- && $conf->exists('batch-enable')
+ && ( $conf->exists('batch-enable')
+ || $conf->config('batch-enable_payby')
+ )
#&& $FS::CurrentUser::CurrentUser->access_right('View customer batched payments')
);