%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
% foreach my $section( RT->Config->Sections ) {
<&|/Widgets/TitleBox, title => loc( $section ) &>
% foreach my $option( RT->Config->Options( Section => $section ) ) {
+% next if $option eq 'EmailFrequency' && !RT->Config->Get('RecordOutgoingEmail');
% my $meta = RT->Config->Meta( $option );
<& $meta->{'Widget'},
Default => 1,
}
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>