X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Fshare%2Fhtml%2FPrefs%2FOther.html;h=93e85d523200a586ed4ac067e858b0a1aabe8cc8;hb=921fcc8e5e3f1ab55f81c01f2e70c170e223cdce;hp=15f5dfd30b4360302105bfa5de75354c4e0224eb;hpb=40f25b8932a3e9830b688ee528ede1dad213c858;p=freeside.git diff --git a/rt/share/html/Prefs/Other.html b/rt/share/html/Prefs/Other.html index 15f5dfd30..93e85d523 100644 --- a/rt/share/html/Prefs/Other.html +++ b/rt/share/html/Prefs/Other.html @@ -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>