event refactor, landing on HEAD!
[freeside.git] / httemplate / search / report_cust_pay_batch.html
index 0dc4bc1..0cd656c 100644 (file)
@@ -16,8 +16,8 @@
   </TR>
 
   <% include( '/elements/tr-select-agent.html',
-                 $cgi->param('agentnum'),
-                 'label' => 'for agent: ',
+                 'curr_value' => scalar( $cgi->param('agentnum') ),
+                 'label'      => 'For agent: ',
              )
   %>
 
@@ -35,3 +35,9 @@
 </FORM>
 
 <% include('/elements/footer.html') %>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+
+</%init>