%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
</&>
% }
-% if ( RT->Config->Get('GnuPG')->{'Enable'} ) {
+% if ( RT->Config->Get('Crypt')->{'Enable'} ) {
<&|/Widgets/TitleBox, title => loc( 'Cryptography' ) &>
-<&|/l&>Preferred key</&>: <& /Elements/GnuPG/SelectKeyForEncryption, EmailAddress => $UserObj->EmailAddress, Default => $UserObj->PreferredKey &>
+<&|/l&>Preferred key</&>: <& /Elements/Crypt/SelectKeyForEncryption, EmailAddress => $UserObj->EmailAddress, Default => $UserObj->PreferredKey &>
</&>
% }
</form>
<%INIT>
my @results;
-my $title = loc("Settings");
+my $title = loc("Preferences");
my $UserObj = $session{'CurrentUser'}->UserObj;
my $preferences = $UserObj->Preferences( $RT::System );
}
if ( $Update ) {
+ my $fsconf = eval { FS::Conf->new };
+ if ( $fsconf && $fsconf->exists('disable_acl_changes') ) {
+ push @results, loc("Preference changes disabled in public demo.");
+ } else {
$preferences ||= {};
$m->comp( '/Widgets/BulkProcess', Meta => {
map { $_ => RT->Config->Meta($_) } RT->Config->Options
my ($ok, $msg) = $UserObj->SetPreferences( $RT::System, $preferences );
push @results, $ok ? loc("Preferences saved.") : $msg;
+ }
}
</%INIT>
<%ARGS>