[freeside-commits] branch FREESIDE_3_BRANCH updated. 921fcc8e5e3f1ab55f81c01f2e70c170e223cdce
Ivan
ivan at 420.am
Wed Aug 6 15:37:01 PDT 2014
The branch, FREESIDE_3_BRANCH has been updated
via 921fcc8e5e3f1ab55f81c01f2e70c170e223cdce (commit)
from 40f25b8932a3e9830b688ee528ede1dad213c858 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 921fcc8e5e3f1ab55f81c01f2e70c170e223cdce
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Aug 6 15:37:00 2014 -0700
public demo RT pref disable hack
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>
-----------------------------------------------------------------------
Summary of changes:
rt/share/html/Prefs/Other.html | 5 +++++
1 file changed, 5 insertions(+)
More information about the freeside-commits
mailing list