X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FPrefs%2FOther.html;h=2af68a0cfced4860cb2540a476a37c87c69fb151;hb=31f3763747b82764bb019cfab5b2a2945fc9a99d;hp=b5d3edd95bd54c2504143fa0c94b2d7f39765e29;hpb=aa38c070977cf63365a4d26a3e4a7e5049ad70d0;p=freeside.git diff --git a/rt/share/html/Prefs/Other.html b/rt/share/html/Prefs/Other.html index b5d3edd95..2af68a0cf 100644 --- a/rt/share/html/Prefs/Other.html +++ b/rt/share/html/Prefs/Other.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -89,6 +89,10 @@ if (defined($PreferredKey) and (not $UserObj->FirstAttribute('PreferredKey') } 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 @@ -101,6 +105,7 @@ if ( $Update ) { my ($ok, $msg) = $UserObj->SetPreferences( $RT::System, $preferences ); push @results, $ok ? loc("Preferences saved.") : $msg; + } } <%ARGS>