diff options
author | ivan <ivan> | 2007-01-30 20:59:14 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-01-30 20:59:14 +0000 |
commit | 15777da47bab33e8f0021e6dd9aa6b434fa9be30 (patch) | |
tree | 83359450ba8dcac02c86bdbd0c85db45a699fc06 /httemplate/browse/part_bill_event.cgi | |
parent | 655b4043942c7d361224d283accb4c2a02ef7359 (diff) |
its all about control
Diffstat (limited to 'httemplate/browse/part_bill_event.cgi')
-rwxr-xr-x | httemplate/browse/part_bill_event.cgi | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/httemplate/browse/part_bill_event.cgi b/httemplate/browse/part_bill_event.cgi index f7c3e03d9..682058b1d 100755 --- a/httemplate/browse/part_bill_event.cgi +++ b/httemplate/browse/part_bill_event.cgi @@ -1,16 +1,3 @@ -% -%my %search; -%if ( $cgi->param('showdisabled') ) { -% %search = (); -%} else { -% %search = ( 'disabled' => '' ); -%} -% -%my @part_bill_event = qsearch('part_bill_event', \%search ); -%my $total = scalar(@part_bill_event); -% - - <% include("/elements/header.html",'Invoice Event Listing', menubar( 'Main Menu' => $p) ) %> Invoice events are actions taken on open invoices.<BR><BR> @@ -118,3 +105,19 @@ </BODY> </HTML> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my %search; +if ( $cgi->param('showdisabled') ) { +%search = (); +} else { +%search = ( 'disabled' => '' ); +} + +my @part_bill_event = qsearch('part_bill_event', \%search ); +my $total = scalar(@part_bill_event); + +</%init> |