From 9a28caa4206a3874ecbc613ba0a38d394582c423 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 1 Aug 2012 11:12:36 -0400 Subject: [PATCH] TPAC: Add config options to hide phone / user prefs Libraries using centralized authentication (such as LDAP via open-ils.auth_proxy) will not want to allow users to change their passwords or email addresses. In addition, many libraries do not want to deal with phone notifications. This commit adds preferences to config.tt2 that hide these options from the user. Signed-off-by: Dan Scott Conflicts: Open-ILS/src/templates/opac/myopac/prefs.tt2 Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 Open-ILS/src/templates/opac/parts/place_hold.tt2 --- Open-ILS/src/templates/opac/myopac/prefs.tt2 | 4 ++-- Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 | 2 +- Open-ILS/src/templates/opac/parts/place_hold.tt2 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/opac/myopac/prefs.tt2 b/Open-ILS/src/templates/opac/myopac/prefs.tt2 index 4b5c476c0d..85572f4fe7 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs.tt2 @@ -93,7 +93,7 @@ [% l("Password") %] [% l("(not shown)") %] - [%- IF disable_password_change %] + [%- IF disable_password_change == 'true' %] [%- ELSE %] [% l("Change") %] @@ -102,7 +102,7 @@ [% l("Email Address") %] [% ctx.user.email | html %] - [%- IF disable_email_change %] + [%- IF disable_email_change == 'true' %] [%- ELSE %] [% l('Change') %] diff --git a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 index 22d9affc3b..d5bc545805 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 @@ -27,7 +27,7 @@ [% IF (matches = ctx.user_setting_map.$setting.match('email')); %] checked='checked' [% END %]/> - [%- IF allow_phone_notifications %] + [%- IF allow_phone_notifications == 'true' %] [% l('Notify by Phone by default when a hold is ready for pickup?') %] diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2 index eefeda12a9..16a18c1d40 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2 @@ -77,7 +77,7 @@ [% l('Yes, by Email') %]
- [%- IF allow_phone_notifications %] + [%- IF allow_phone_notifications == 'true' %] [% l('Yes, by Phone') %]
-- 2.11.0