X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_acct%2Fbasics.html;h=1b7d56b237d777af8ef92c16c7e6cac03c9b131c;hp=441c20add35d17bfd67952bb50a0387a39fbd116;hb=8c4fb61d3ab13ca97f9fe037555087506435d9da;hpb=992573160bf2fc89b1d957973109e03d2abf0a47 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 .= '('. mt('hidden') .')'; % } +% my $psc = $part_svc->part_svc_column('_password'); +% if ( $psc->columnflag eq 'F' and $psc->columnvalue eq '' ) { +% # show nothing +% } else { <% mt('Password') %> <% $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, &> -% } +% } +% } % if ( $conf->exists('security_phrase') ) { <& /view/elements/tr.html, label=>mt('Security phrase'), value=>$svc_acct->sec_phrase &>