lp1777677 Security tweaks
- Refactor test notification API to check if requestor
is user,and if not, then check if requestor has
permissions to view users at target user's home ou.
- Change event_def_type references to "hook"
- Separate out sendTestEmail and sendTestSMS functions
in frontend to prevent potential misuse of functionality.
Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Changes to be committed:
modified: Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
modified: Open-ILS/src/templates/opac/myopac/prefs.tt2
modified: Open-ILS/src/templates/opac/myopac/prefs_notify.tt2
modified: Open-ILS/src/templates/staff/circ/patron/t_edit.tt2
modified: Open-ILS/web/js/ui/default/opac/test_notification.js
modified: Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>