summaryrefslogtreecommitdiff
path: root/rt/share
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-08-06 15:36:58 -0700
committerIvan Kohler <ivan@freeside.biz>2014-08-06 15:36:58 -0700
commit2d7e57036577c272ce0e9ee4c7e3985a4b3adf22 (patch)
tree26e5287bb932da4f35cc5e0aa6c99532c08880e7 /rt/share
parent7c370a4579d1ed8b81dba2fb5fae9978b283b49e (diff)
public demo RT pref disable hack
Diffstat (limited to 'rt/share')
-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 15f5dfd..93e85d5 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>