add umask_ss config, RT#17606
authorIvan Kohler <ivan@freeside.biz>
Tue, 15 May 2012 00:42:31 +0000 (17:42 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 15 May 2012 00:42:31 +0000 (17:42 -0700)
FS/FS/Conf.pm
httemplate/edit/cust_main.cgi
httemplate/view/cust_main/contacts.html

index da8717e..2acbf0a 100644 (file)
@@ -1925,6 +1925,13 @@ and customer address. Include units.',
   },
 
   {
+    'key'         => 'unmask_ss',
+    'section'     => 'UI',
+    'description' => "Don't mask social security numbers in the web interface.",
+    'type'        => 'checkbox',
+  },
+
+  {
     'key'         => 'show_stateid',
     'section'     => 'UI',
     'description' => "Turns on display/collection of driver's license/state issued id numbers in the web interface.  Sometimes required by electronic check (ACH) processors.",
index b97fb16..0289246 100755 (executable)
@@ -299,7 +299,7 @@ if ( $cgi->param('error') ) {
     $cust_main->paycvv($paycvv);
   }
   @invoicing_list = $cust_main->invoicing_list;
-  $ss = $cust_main->masked('ss');
+  $ss = $conf->exists('unmask_ss') ? $cust_main->ss : $cust_main->masked('ss');
   $stateid = $cust_main->masked('stateid');
   $payinfo = $cust_main->paymask;
 
index 12b9391..fe7cc5c 100644 (file)
@@ -14,7 +14,7 @@
   </TD>
 % if ( $which eq '' && $conf->exists('show_ss') ) { 
     <TD ALIGN="right"><% mt('SS#') |h %></TD>
-    <TD BGCOLOR="#ffffff"><% $cust_main->masked('ss') || '&nbsp' %></TD>
+    <TD BGCOLOR="#ffffff"><% $conf->exists('unmask_ss') ? $cust_main->ss : $cust_main->masked('ss') || '&nbsp' %></TD>
 % } 
 </TR>