Bugzilla – Attachment 134719 Details for
Bug 30611
Add ability to trigger a patron password reset from the staff client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30611: (QA follow-up) Only show reset option for allowed categories
Bug-30611-QA-follow-up-Only-show-reset-option-for-.patch (text/plain), 1.64 KB, created by
Martin Renvoize (ashimema)
on 2022-05-06 10:39:31 UTC
(
hide
)
Description:
Bug 30611: (QA follow-up) Only show reset option for allowed categories
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-05-06 10:39:31 UTC
Size:
1.64 KB
patch
obsolete
>From 5ac90376393f055cd76bd42dbf324484635f97e8 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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 >--- > 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 @@ > <li><a id="sendwelcome" href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber | uri %]&op=send_welcome">Send welcome email</a></li> > [% END %] > >- [% IF CAN_user_borrowers_edit_borrowers %] >+ [% IF CAN_user_borrowers_edit_borrowers && patron.category.effective_reset_password %] > <li><a id="resetpassword" href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber | uri %]&op=send_password_reset">Send password reset</a></li> > [% END %] > >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30611
:
134357
|
134358
|
134378
|
134379
|
134719
|
134720
|
134774
|
134775
|
134776
|
134777