projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7c370a4
)
public demo RT pref disable hack
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 6 Aug 2014 22:36:58 +0000
(15:36 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 6 Aug 2014 22:36:58 +0000
(15:36 -0700)
rt/share/html/Prefs/Other.html
patch
|
blob
|
history
diff --git
a/rt/share/html/Prefs/Other.html
b/rt/share/html/Prefs/Other.html
index
15f5dfd
..
93e85d5
100644
(file)
--- 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 ) {
}
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
$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;
my ($ok, $msg) = $UserObj->SetPreferences( $RT::System, $preferences );
push @results, $ok ? loc("Preferences saved.") : $msg;
+ }
}
</%INIT>
<%ARGS>
}
</%INIT>
<%ARGS>