X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=efcf48eccad2abcb34d8052eb213b61d1f41e2fb;hp=367659293261c053e4ca96b0845bd7565e3a61d8;hb=e8740b7c8f772508c0a393d3c0de2b3c8531280d;hpb=381992561d7b1a88e05d49d3e474a2fad25873c7
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html
index 367659293..efcf48ecc 100644
--- a/httemplate/view/cust_main/contacts.html
+++ b/httemplate/view/cust_main/contacts.html
@@ -31,10 +31,11 @@
<% mt('SS#') |h %> |
- <% $conf->exists('unmask_ss')
- ? $cust_main->ss
- : $cust_main->masked('ss') || ' ' %>
-% if ( !$conf->exists('unmask_ss') && $FS::CurrentUser::CurrentUser->access_right('Unmask customer SSN')) {
+ <% $cust_main->masked('ss') || ' ' %>
+% if (
+% $cust_main->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 +187,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,
|