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