LP#1777677 Test Notification Method
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 26 Feb 2019 15:37:12 +0000 (10:37 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 11 Sep 2020 19:51:31 +0000 (15:51 -0400)
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 <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/templates/opac/myopac/test_notification.tt2

index e0497b6..3b39d39 100644 (file)
@@ -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;
index 7f5d92e..22f0359 100644 (file)
@@ -2,11 +2,11 @@
     [% l('Message Sent') %]
 </div>
 <div>
-    [% 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.') %]
 </div>
 
 <div>[% ctx.user.home_ou.name %]</div>