usage suspend vs admin suspend -- avoid actual cust_pkg::suspend except legacy cases
[freeside.git] / httemplate / search / report_cust_bill.html
index ec57d20..74b96cc 100644 (file)
@@ -5,7 +5,7 @@
 
 <TABLE>
   <% include( '/elements/tr-select-agent.html',
-                 $cgi->param('agentnum'),
+                 $cgi->param('agentnum') ? $cgi->param('agentnum') : '',
                  'label' => 'Invoices for agent: ',
              )
   %>
@@ -26,3 +26,9 @@
 </FORM>
 
 <% include('/elements/footer.html') %>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('List invoices');
+
+</%init>