summaryrefslogtreecommitdiff
path: root/FS/FS/Upgrade.pm
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2018-07-17 22:14:07 -0500
committerMitch Jackson <mitch@freeside.biz>2018-07-18 18:09:33 +0000
commit81fe2b6311b181a32a81fa81fcccfff1c7d471d1 (patch)
tree190a37dda195780ff8562efc4aed2b928d0f5634 /FS/FS/Upgrade.pm
parentea2858e409d074c635288824300de542c7615862 (diff)
RT# 32234 Change unmask_ss from global conf to group access right
Diffstat (limited to 'FS/FS/Upgrade.pm')
-rw-r--r--FS/FS/Upgrade.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm
index 3e04127..1f47217 100644
--- a/FS/FS/Upgrade.pm
+++ b/FS/FS/Upgrade.pm
@@ -192,6 +192,19 @@ If you need to continue using the old Form 477 report, turn on the
$lh->maketext($_) if length($_);
}
}
+
+ unless ( FS::upgrade_journal->is_done('deprecate_unmask_ss') ) {
+ if ( $conf->config_bool( 'unmask_ss' )) {
+ warn "'unmask_ssn' deprecated from global configuration\n";
+ for my $access_group ( qsearch( access_group => {} )) {
+ $access_group->grant_access_right( 'Unmask customer SSN' );
+ warn " - 'Unmask customer SSN' access right granted to '" .
+ $access_group->groupname . "' employee group\n";
+ }
+ }
+ FS::upgrade_journal->set_done('deprecate_unmask_ss');
+ }
+
}
sub upgrade_overlimit_groups {