diff options
author | Mitch Jackson <mitch@freeside.biz> | 2018-07-17 22:14:07 -0500 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2018-07-17 22:14:07 -0500 |
commit | 2082afa31ef1e98cf2afbc7d8365935f92cc61d0 (patch) | |
tree | 289861e19d4168d0e15cd3d6ac3d6c355e708ddc /FS/FS/Upgrade.pm | |
parent | 07bf36bccc4979b12db49b0f71524de4296f3717 (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.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index aebfc29..c15f7dd 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 { |