diff options
author | ivan <ivan> | 2011-11-22 21:26:58 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-11-22 21:26:58 +0000 |
commit | d0008add75bbb6e2ec49e6d40f28965eac0bcfb6 (patch) | |
tree | b8759dd762274dbc4c6d160e401a938d6dee93d1 | |
parent | 6b422c02045e73bac0e0c73553da62a99a9698a4 (diff) |
use the new "Process global batches" right to allow access to non-agent-specific batches, RT#15310
-rwxr-xr-x | httemplate/search/cust_pay_batch.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/search/cust_pay_batch.cgi b/httemplate/search/cust_pay_batch.cgi index f38264410..800df8702 100755 --- a/httemplate/search/cust_pay_batch.cgi +++ b/httemplate/search/cust_pay_batch.cgi @@ -111,7 +111,11 @@ unless ($pay_batch){ $orderby = "pay_batch.download,paybatchnum"; } -push @search, $curuser->agentnums_sql({ table=>'cust_main' }); +push @search, $curuser->agentnums_sql({ table => 'cust_main' }); + +push @search, $curuser->agentnums_sql({ table => 'pay_batch', + null_right => 'Process global batches', + }); my $search = ' WHERE ' . join(' AND ', @search); |