From 0b5b3919c04527bb8e2d693fa6d274fcb912b8a6 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 6 May 2022 11:36:15 +0100 Subject: [PATCH] Bug 30611: (QA follow-up) Only show reset option for allowed categories This patch adds a check that the patron can reach the password reset page using category.effective_reset_password which handles fallback to OpacResetPassword system preference transparently. Test plan 1) Set at least one patron category to dissallow patron password resets 2) Search for a patron of that category 3) Confirm the 'Send password reset' option no longer appears Signed-off-by: Marcel de Rooy Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc index 83136d04b8..0bf4625335 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc @@ -72,7 +72,7 @@
  • Send welcome email
  • [% END %] - [% IF CAN_user_borrowers_edit_borrowers %] + [% IF CAN_user_borrowers_edit_borrowers && patron.category.effective_reset_password %]
  • Send password reset
  • [% END %] -- 2.39.5