X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=efcf48eccad2abcb34d8052eb213b61d1f41e2fb;hb=368ed08e24400e9d1faf401a1e4e23ea54d2c969;hp=1660c1c2272a649ce8783c6864287d0a2160b299;hpb=ae58eda132b5a89ce251dbdf13822dee2f3bc92f;p=freeside.git
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html
index 1660c1c22..efcf48ecc 100644
--- a/httemplate/view/cust_main/contacts.html
+++ b/httemplate/view/cust_main/contacts.html
@@ -29,9 +29,21 @@
<% $cust_main->contact |h %> |
% if ( $conf->exists('show_ss') ) {
<% mt('SS#') |h %> |
- <% $conf->exists('unmask_ss')
- ? $cust_main->ss
- : $cust_main->masked('ss') || ' ' %> |
+
+
+ <% $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,
+ element_type => 'span'
+ } &>
+% }
+
+ |
% }
% if ( $conf->exists('cust_main-enable_spouse') and
@@ -172,7 +184,21 @@
<% $stateid_label %> |
- <% $cust_main->masked('stateid') || ' ' %> |
+
+
+ <% $cust_main->masked('stateid') || ' ' %>
+% 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,
+ element_type => 'span'
+ } &>
+% }
+
+ |
<% $stateid_state_label %> |
<% $cust_main->stateid_state || ' ' %> |