From 1ae273f69e5bf2b46c9c5fcd990ad923770ace56 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 14 May 2012 17:42:31 -0700 Subject: [PATCH] add umask_ss config, RT#17606 --- 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(-) diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index da8717e25..2acbf0a89 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 b97fb16bf..028924669 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 12b9391a0..fe7cc5c0a 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -14,7 +14,7 @@ % if ( $which eq '' && $conf->exists('show_ss') ) { <% mt('SS#') |h %> - <% $cust_main->masked('ss') || ' ' %> + <% $conf->exists('unmask_ss') ? $cust_main->ss : $cust_main->masked('ss') || ' ' %> % } -- 2.11.0