summaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-08-06 15:37:00 -0700
committerIvan Kohler <ivan@freeside.biz>2014-08-06 15:37:00 -0700
commit921fcc8e5e3f1ab55f81c01f2e70c170e223cdce (patch)
treee8ecb52d88993ada857f53fb319c38c4b949f1ba /rt
parent40f25b8932a3e9830b688ee528ede1dad213c858 (diff)
public demo RT pref disable hack
Diffstat (limited to 'rt')
-rw-r--r--rt/share/html/Prefs/Other.html5
1 files changed, 5 insertions, 0 deletions
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;
+ }
}
</%INIT>
<%ARGS>