event refactor, landing on HEAD!
[freeside.git] / httemplate / search / report_cust_bill.html
index ec57d20..892f5c4 100644 (file)
@@ -5,8 +5,8 @@
 
 <TABLE>
   <% include( '/elements/tr-select-agent.html',
-                 $cgi->param('agentnum'),
-                 'label' => 'Invoices for agent: ',
+                 'curr_value' => scalar( $cgi->param('agentnum') ),
+                 'label'      => 'Invoices for agent: ',
              )
   %>
   <% include( '/elements/tr-input-beginning_ending.html' ) %>
@@ -26,3 +26,9 @@
 </FORM>
 
 <% include('/elements/footer.html') %>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('List invoices');
+
+</%init>