From: Bill Erickson Date: Tue, 30 Aug 2011 16:54:48 +0000 (-0400) Subject: Tpac: only show opac_visible notification opt-in settings X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=54a37f381503b47b042efcfe37e784123eeb5773;p=evergreen%2Fpines.git Tpac: only show opac_visible notification opt-in settings Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index 344696a3a0..e32cd93db4 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -163,6 +163,9 @@ sub fetch_optin_prefs { 'open-ils.actor.event_def.opt_in.settings.atomic', $e->authtoken, $e->requestor->home_ou); + # some opt-ins are staff-only + $opt_ins = [ grep { $U->is_true($_->opac_visible) } @$opt_ins ]; + # fetch user setting values for each of the opt-in settings my $user_set = $U->simplereq( 'open-ils.actor',