diff options
author | Mark Wells <mark@freeside.biz> | 2016-01-12 22:07:17 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-01-12 22:10:51 -0800 |
commit | 6f471946b3ae36061cb595ba0657a5b43e7bfd5d (patch) | |
tree | afe0d89328e91b81981d3831ccec50cb35d63b20 /httemplate/view/svc_acct | |
parent | ae5d2972d6d9b582cd739bab778cc46dbe52e478 (diff) |
allow svc_acct password field to be disabled, #39528, fixing fallout from #29354 and #32456
Diffstat (limited to 'httemplate/view/svc_acct')
-rw-r--r-- | httemplate/view/svc_acct/basics.html | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/httemplate/view/svc_acct/basics.html b/httemplate/view/svc_acct/basics.html index 441c20add..1b7d56b23 100644 --- a/httemplate/view/svc_acct/basics.html +++ b/httemplate/view/svc_acct/basics.html @@ -33,22 +33,29 @@ % $password = ''; % $show_pw .= '<I>('. mt('hidden') .')</I>'; % } +% my $psc = $part_svc->part_svc_column('_password'); +% if ( $psc->columnflag eq 'F' and $psc->columnvalue eq '' ) { +% # show nothing +% } else { <TR> <TD ALIGN="right"><% mt('Password') %></TD> <TD STYLE="background-color: #ffffff; white-space: nowrap"> <% $show_pw %> -% my $curuser = $FS::CurrentUser::CurrentUser; -% if ( $curuser->access_right('Provision customer service') or -% ($curuser->access_right('Edit password') and -% ! $part_svc->restrict_edit_password) ) -% { +% my $curuser = $FS::CurrentUser::CurrentUser; +% if ( $curuser->access_right('Provision customer service') or +% ($curuser->access_right('Edit password') and +% ! $part_svc->restrict_edit_password) +% and $psc->columnflag ne 'F' +% ) +% { <& /elements/change_password.html, 'svc_acct' => $svc_acct, 'curr_value' => $password, &> -% } +% } </TD> </TR> +% } % if ( $conf->exists('security_phrase') ) { <& /view/elements/tr.html, label=>mt('Security phrase'), value=>$svc_acct->sec_phrase &> |