event refactor, landing on HEAD!
[freeside.git] / httemplate / graph / report_cust_bill_pkg.html
index 664aab7..be5a71a 100644 (file)
@@ -6,9 +6,9 @@
 
 <% 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: ' ) %>
 
-<% include('/elements/tr-select-pkg_class.html', '',
+<% include('/elements/tr-select-pkg_class.html',
               'pre_options' => [ '0' => 'all' ],
               'empty_label' => '(empty class)',
            )
@@ -27,3 +27,9 @@
 </FORM>
 
 <% include('/elements/footer.html') %>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+
+</%init>