diff options
author | ivan <ivan> | 2006-06-19 13:09:14 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-06-19 13:09:14 +0000 |
commit | b5c26536197f16a3e1ea47c14c94884312c7fd24 (patch) | |
tree | 878efa2ba30c040c716340e7469f8528495818f4 | |
parent | 3489c3e13d952972c06b82d1eb2bbd0315ed5a7c (diff) |
fix ACL name for service provisioning and prevent disabled service provisioning from messing up table formatting
-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 |