X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=11efcd568d577184e714b9800a9918b7cc86ea2f;hp=367659293261c053e4ca96b0845bd7565e3a61d8;hb=7bf6dafb0da4a525388a6f145dd0a904eddcec14;hpb=ca8a483f90e0c9ee4a1d2e65ddee07278ff48a9d diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index 367659293..11efcd568 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -34,7 +34,11 @@ <% $conf->exists('unmask_ss') ? $cust_main->ss : $cust_main->masked('ss') || ' ' %> -% if ( !$conf->exists('unmask_ss') && $FS::CurrentUser::CurrentUser->access_right('Unmask customer SSN')) { +% if ( +% $cust_main->ss +% && !$conf->exists('unmask_ss') +% && $FS::CurrentUser::CurrentUser->access_right('Unmask customer SSN') +% ) { <& /elements/link-replace_element_text.html, { target_id => 'ss_span', replace_text => $cust_main->ss, @@ -186,7 +190,10 @@ <% $cust_main->masked('stateid') || ' ' %> -% if ( $FS::CurrentUser::CurrentUser->access_right('Unmask customer DL')) { +% if ( +% $cust_main->stateid +% && $FS::CurrentUser::CurrentUser->access_right('Unmask customer DL') +% ) { <& /elements/link-replace_element_text.html, { target_id => 'stateid_span', replace_text => $cust_main->stateid,