address standardization part one, finally checked in from here
[freeside.git] / httemplate / misc / cust_main-cancel.cgi
index 2f9c380..009a7d4 100755 (executable)
@@ -6,6 +6,9 @@
 </HTML>
 <%init>
 
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Cancel customer');
+
 my $custnum;
 my $ban = '';
 if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
@@ -48,7 +51,7 @@ my $error = join(' / ', @errors) if scalar(@errors);
 
 if ( $error ) {
   $cgi->param('error', $error);
-  print $cgi->redirect(popurl(2). "cancel_pkg.html?". $cgi->query_string );
+  print $cgi->redirect(popurl(1). "cancel_cust.html?". $cgi->query_string );
 }
 
 </%init>