diff options
-rwxr-xr-x | httemplate/view/cust_main/packages.html | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index 8312a8663..beb67f325 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -333,12 +333,18 @@ foreach my $pkg (sort pkgsort_pkgnum_cancel @$packages) { <% $cnt++; } - if ( $svcpart->{count} < $svcpart->{quantity} - && $curuser->access_right('Provision customer services') - ) { - print qq!<TR>\n! if ($cnt > 0); - print qq! <TD COLSPAN=2>!.svc_provision_link($pkg, $svcpart, $conf, $curuser).qq!</TD>\n</TR>\n!; + if ( $svcpart->{count} < $svcpart->{quantity} ) { + print '<TR>' if ($cnt > 0); + if ( $curuser->access_right('Provision customer service') ) { + print '<TD COLSPAN=2>'. + svc_provision_link($pkg, $svcpart, $conf, $curuser). + '</TD></TR>'; + } else { + #print '<TD COLSPAN=2> </TD></TR>'; + print '<TD COLSPAN=2></TD></TR>'; + } } + } } #end display packages |