From f49f11d4c3c4ba9480cc5c9acfaa606a5ba73ad1 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 13 Jan 2008 21:14:19 +0000 Subject: ACLs --- httemplate/misc/upload-batch.cgi | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'httemplate/misc/upload-batch.cgi') diff --git a/httemplate/misc/upload-batch.cgi b/httemplate/misc/upload-batch.cgi index 5a15008b0..d1a84fd02 100644 --- a/httemplate/misc/upload-batch.cgi +++ b/httemplate/misc/upload-batch.cgi @@ -1,17 +1,14 @@ -% if ( $error ) { - - - -% errorpage($error); -%# $cgi->param('error', $error); -%# print $cgi->redirect( "${p}cust_main-import.cgi -% } else { - - <% include("/elements/header.html",'Batch results upload successful') %> - -% } +% if ( $error ) { +% errorpage($error); +% } else { + <% include('/elements/header.html','Batch results upload successful') %> + <% include('/elements/footer.html') %> +% } <%init> +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Process batches'); + my $error; my $fh = $cgi->upload('batch_results'); -- cgit v1.2.1