X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FPrefs%2FOther.html;h=93e85d523200a586ed4ac067e858b0a1aabe8cc8;hp=15f5dfd30b4360302105bfa5de75354c4e0224eb;hb=2d7e57036577c272ce0e9ee4c7e3985a4b3adf22;hpb=7c370a4579d1ed8b81dba2fb5fae9978b283b49e 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>