X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FSetup.pm;h=f0929192098fe1b3827fcbc954fc11c43426e15c;hb=2c04f1df05a1b14d9539bbae97275c1d3a0995e2;hp=29130fa614fcf0b9ed068489ede1e9256ce9d21e;hpb=c9450c02f7ac2f904a6ffabb07b6b2d5bca1fd4a;p=freeside.git diff --git a/FS/FS/Setup.pm b/FS/FS/Setup.pm index 29130fa61..f09291920 100644 --- a/FS/FS/Setup.pm +++ b/FS/FS/Setup.pm @@ -84,6 +84,12 @@ sub enable_encryption { $conf->set('encryptionpublickey', $rsa->get_public_key_string ); $conf->set('encryptionprivatekey', $rsa->get_private_key_string ); + # reload Record globals, false laziness with FS::Record + $FS::Record::conf_encryption = $conf->exists('encryption'); + $FS::Record::conf_encryptionmodule = $conf->config('encryptionmodule'); + $FS::Record::conf_encryptionpublickey = join("\n",$conf->config('encryptionpublickey')); + $FS::Record::conf_encryptionprivatekey = join("\n",$conf->config('encryptionprivatekey')); + } sub populate_numbering { @@ -413,6 +419,7 @@ sub populate_access { use FS::AccessRight; use FS::access_right; + use FS::access_groupagent; foreach my $rightname ( FS::AccessRight->default_superuser_rights ) { my $access_right = new FS::access_right {