]> git.koha-community.org Git - koha.git/commit
Bug 30611: (QA follow-up) Only show reset option for allowed categories
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 6 May 2022 10:36:15 +0000 (11:36 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 11 May 2022 01:17:17 +0000 (15:17 -1000)
commit0b5b3919c04527bb8e2d693fa6d274fcb912b8a6
treec8620f26a5e4c70e34c29c504a867494d27d8f14
parentb5a93edea574ecae1e30d6e7b7969be66b8b3619
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>
koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc