From 2cc8d4007576bfd2efd294fe19f5c3885c5abd8e Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Sun, 10 Jun 2018 23:25:41 -0500 Subject: RT# 32233 Mask ssn and stateid in selfservice --- FS/FS/ClientAPI/MyAccount.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'FS/FS') diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index e4fef9554..ae0fa614c 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -630,6 +630,10 @@ sub customer_info_short { for (@cust_main_editable_fields) { $return{$_} = $cust_main->get($_); } + + $return{ss} = $cust_main->masked('ss') if $p->{mask_ss}; + $return{stateid} = $cust_main->masked('stateid') if $p->{mask_stateid}; + #maybe a little more expensive, but it should be cached by now for (@location_editable_fields) { $return{$_} = $cust_main->bill_location->get($_) @@ -3900,4 +3904,3 @@ sub _custoragent_session_custnum { } 1; - -- cgit v1.2.1