X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=efcf48eccad2abcb34d8052eb213b61d1f41e2fb;hb=5b0df166c22e13eba83fabee858846ead6a54141;hp=d75f114cf2c7348b5cfe4e57bd78b3343bd1526c;hpb=4dc075fc38008d1c6cbe9b88b2bdb32bdc92adbf;p=freeside.git
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html
index d75f114cf..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
@@ -82,7 +94,7 @@
% } elsif ( $this eq 'ship' ) {
% if ( $cust_main->ship_company ) { # mostly obsolete these days...
- <% mt('Company') |h %> |
+ <% mt('Company') |h %> |
<% $cust_main->ship_company |h %> |
% }
@@ -93,7 +105,7 @@
% if ( $location->locationname ) {
- <% mt('Location ID') |h %> |
+ <% mt('Location ID') |h %> |
<% $location->locationname |h %> |
% }
@@ -160,7 +172,7 @@
% if ( $cust_main->get('fax') ) {
- <% mt('Fax') |h %> |
+ <% mt('Fax') |h %> |
<% $cust_main->get('fax') || ' ' %>
|
@@ -171,9 +183,23 @@
% if ( $conf->exists('show_stateid') ) {
- <% $stateid_label %> |
- <% $cust_main->masked('stateid') || ' ' %> |
- <% $stateid_state_label %> |
+ <% $stateid_label %> |
+
+
+ <% $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 || ' ' %> |