summaryrefslogtreecommitdiff
path: root/httemplate/misc/process/cancel_pkg.html
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-06-15 22:19:13 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-06-15 22:22:39 -0500
commit66d34b037f3c79a1fcb60418f34dff56a7d467b8 (patch)
treeca4d673da61be6a0ada6ba8182fbd6c657b27dc0 /httemplate/misc/process/cancel_pkg.html
parent347ec57e34dd8d3447fdb05cbdec9bda627a000b (diff)
RT#71298: Suspend Option for billing to continue
Diffstat (limited to 'httemplate/misc/process/cancel_pkg.html')
-rwxr-xr-xhttemplate/misc/process/cancel_pkg.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/misc/process/cancel_pkg.html b/httemplate/misc/process/cancel_pkg.html
index c7a43979d..6972a49bf 100755
--- a/httemplate/misc/process/cancel_pkg.html
+++ b/httemplate/misc/process/cancel_pkg.html
@@ -33,8 +33,10 @@ $method =~ /^(cancel|expire|suspend|adjourn|resume|uncancel)$/
$method = $1;
my $past_method = $past{$method};
+my $curuser = $FS::CurrentUser::CurrentUser;
+
die "access denied"
- unless $FS::CurrentUser::CurrentUser->access_right($right{$method});
+ unless $curuser->access_right($right{$method});
#untaint pkgnum
my $pkgnum = $cgi->param('pkgnum');
@@ -60,7 +62,8 @@ if ( $method eq 'suspend' ) { #or 'adjourn'
$options = { map { $_ => scalar($cgi->param($_)) }
qw( suspend_bill no_suspend_bill )
- };
+ }
+ if $curuser->access_right('Customize billing during suspension');
}
my $cust_pkg = qsearchs( 'cust_pkg', {'pkgnum'=>$pkgnum} );