[freeside-commits] freeside/httemplate/search cust_pay_batch.cgi, 1.21, 1.22

Ivan,,, ivan at wavetail.420.am
Tue Nov 22 13:27:00 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv24741/httemplate/search

Modified Files:
	cust_pay_batch.cgi 
Log Message:
use the new "Process global batches" right to allow access to non-agent-specific batches, RT#15310

Index: cust_pay_batch.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_pay_batch.cgi,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -w -d -r1.21 -r1.22
--- cust_pay_batch.cgi	22 Nov 2011 21:25:32 -0000	1.21
+++ cust_pay_batch.cgi	22 Nov 2011 21:26:58 -0000	1.22
@@ -113,6 +113,10 @@
 
 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);
 
 $count_query = 'SELECT COUNT(*) FROM cust_pay_batch AS cpb ' .



More information about the freeside-commits mailing list