X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fcust_main-cancel.cgi;h=009a7d41bd65415802bc24692fbc9e0af3d8d206;hb=8683e577714aeaef12bb07eeaeb539359b80b249;hp=2f9c38004c7df614bf52229583fcf18c82452756;hpb=eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd;p=freeside.git diff --git a/httemplate/misc/cust_main-cancel.cgi b/httemplate/misc/cust_main-cancel.cgi index 2f9c38004..009a7d41b 100755 --- a/httemplate/misc/cust_main-cancel.cgi +++ b/httemplate/misc/cust_main-cancel.cgi @@ -6,6 +6,9 @@ <%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 ); }