summaryrefslogtreecommitdiff
path: root/fs_selfservice
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-11-19 21:56:06 -0800
committerIvan Kohler <ivan@freeside.biz>2013-11-19 21:56:06 -0800
commitbc54a75d31ea0e70e5854e4ddb9122d8feecdd74 (patch)
tree954ab01cfbd205aaf2ced9588fa6cac0bdcb9490 /fs_selfservice
parent4247bd18a51ef34403d648af6281101f25fc9a62 (diff)
prohibit self-service changing of suspended packages, RT#26140
Diffstat (limited to 'fs_selfservice')
-rw-r--r--fs_selfservice/FS-SelfService/cgi/provision_list.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/provision_list.html b/fs_selfservice/FS-SelfService/cgi/provision_list.html
index 2a3a8e909..24d6ff436 100644
--- a/fs_selfservice/FS-SelfService/cgi/provision_list.html
+++ b/fs_selfservice/FS-SelfService/cgi/provision_list.html
@@ -9,10 +9,14 @@ foreach my $pkg (
|| scalar(@{$_->{cust_svc}})
} @cust_pkg
) {
+
my $susp = $pkg->{'susp'} || '';
- my @pkg_actions = ( [ 'customer_change_pkg' => 'change' ] );
- push @pkg_actions, [ 'process_suspend_pkg' => 'suspend' ]
- if $self_suspend_reason and !$susp;
+ my @pkg_actions = ();
+ if ( ! $susp ) {
+ push @pkg_actions, [ 'customer_change_pkg' => 'change' ];
+ push @pkg_actions, [ 'process_suspend_pkg' => 'suspend' ]
+ if $self_suspend_reason;
+ }
my $bgcolor = $susp ? '"#ff9900"' : '"#8888ff"';
$OUT .= #'<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BGCOLOR="#ffffff">'.