summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/mapsecrets2access_user2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/mapsecrets2access_user b/bin/mapsecrets2access_user
index 934cd7698..b34e0321a 100755
--- a/bin/mapsecrets2access_user
+++ b/bin/mapsecrets2access_user
@@ -3,6 +3,7 @@
use strict;
use File::Copy "cp";
use FS::UID qw(adminsuidsetup);
+use FS::CurrentUser;
use FS::AccessRight;
use FS::Record qw(qsearchs qsearch);
use FS::access_group;
@@ -12,6 +13,7 @@ use FS::access_right;
use FS::access_groupagent;
use FS::agent;
+$FS::CurrentUser::upgrade_hack = 1;
adminsuidsetup shift;
my $supergroup = qsearchs('access_group', { 'groupname' => 'Superuser' } );