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 <m.de.rooy@rijksmuseum.nl> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
b5a93edea5
commit
0b5b3919c0
|
|
@ -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 %]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue