From: Terran McCanna Date: Tue, 26 Feb 2019 15:37:12 +0000 (-0500) Subject: LP#1777677 Test Notification Method X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=713565421bd89c2576f4efa07e4c0e4d14dbf55a;p=evergreen%2Fmasslnc.git LP#1777677 Test Notification Method Correcting two code typos (USER_VIEW should be VIEW_USER in Actor.pm and language string typo in test_notification.tt2). Signed-off-by: Terran McCanna Signed-off-by: Chris Sharp Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm index e0497b6a7b..3b39d398f3 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm @@ -4364,7 +4364,7 @@ sub fire_test_notification { return $e->event unless $e->checkauth; if ($e->requestor->id != $$args{target}) { my $home_ou = $e->retrieve_actor_user($$args{target})->home_ou; - return $e->die_event unless $home_ou && $e->allowed('USER_VIEW', $home_ou); + return $e->die_event unless $home_ou && $e->allowed('VIEW_USER', $home_ou); } my $event_hook = $$args{hook} or return $e->event; diff --git a/Open-ILS/src/templates/opac/myopac/test_notification.tt2 b/Open-ILS/src/templates/opac/myopac/test_notification.tt2 index 7f5d92e459..22f03596b3 100644 --- a/Open-ILS/src/templates/opac/myopac/test_notification.tt2 +++ b/Open-ILS/src/templates/opac/myopac/test_notification.tt2 @@ -2,11 +2,11 @@ [% l('Message Sent') %]
- [% l('If you do not receive ') %] [% IF message_type == "email" %] - [% l(a'n email') %] - [% ELSIF message_type == "sms" %] - [% l(' text') %] - [% END %] [% l('message, contact your Library for more information.') %] + [% l('If you do not receive ') %] [% IF message_type == "email" %] + [% l('an email') %] + [% ELSIF message_type == "sms" %] + [% l('a text') %] + [% END %] [% l(' message, contact your Library for more information.') %]
[% ctx.user.home_ou.name %]