allow all-agent reporting again
[freeside.git] / httemplate / graph / report_cust_bill_pkg.html
index 664aab7..5193bf4 100644 (file)
@@ -6,9 +6,13 @@
 
 <% include('/elements/tr-select-from_to.html' ) %>
 
-<% include('/elements/tr-select-agent.html', 'label' => 'For agent: ' ) %>
+<% include('/elements/tr-select-agent.html',
+             'label'         => 'For agent: ',
+             'disable_empty' => 0,
+          )
+%>
 
-<% include('/elements/tr-select-pkg_class.html', '',
+<% include('/elements/tr-select-pkg_class.html',
               'pre_options' => [ '0' => 'all' ],
               'empty_label' => '(empty class)',
            )
@@ -27,3 +31,9 @@
 </FORM>
 
 <% include('/elements/footer.html') %>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+
+</%init>