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