[freeside-commits] branch master updated. 1ae273f69e5bf2b46c9c5fcd990ad923770ace56

Ivan ivan at 420.am
Mon May 14 17:42:32 PDT 2012


The branch, master has been updated
       via  1ae273f69e5bf2b46c9c5fcd990ad923770ace56 (commit)
      from  5214a5560240667a3a914c45df046b420926a5ec (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1ae273f69e5bf2b46c9c5fcd990ad923770ace56
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon May 14 17:42:31 2012 -0700

    add umask_ss config, RT#17606

diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index da8717e..2acbf0a 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -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.",
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index b97fb16..0289246 100755
--- a/httemplate/edit/cust_main.cgi
+++ b/httemplate/edit/cust_main.cgi
@@ -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;
 
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html
index 12b9391..fe7cc5c 100644
--- a/httemplate/view/cust_main/contacts.html
+++ b/httemplate/view/cust_main/contacts.html
@@ -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>
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Conf.pm                           |    7 +++++++
 httemplate/edit/cust_main.cgi           |    2 +-
 httemplate/view/cust_main/contacts.html |    2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list