<% 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)',
)
</FORM>
<% include('/elements/footer.html') %>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+
+</%init>