]> git.koha-community.org Git - koha.git/commit
Bug 30230: Add new 'list_borrowers' permission
authorThibaud Guillot <thibaud.guillot@biblibre.com>
Thu, 30 Nov 2023 14:14:42 +0000 (15:14 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 1 Feb 2024 15:22:55 +0000 (16:22 +0100)
commit483a11ff544b7d435bbe45385e69d4e6b059e9ad
tree6a7dc7fc114773e863a145b21b5f83ab70e120ea
parentcca2fa2396243a0ccf9aee648667526b7f0de27b
Bug 30230: Add new 'list_borrowers' permission

When a patron search is performed only a user with edit_borrowers
permission can search by name. Search can works only with cardnumber but
it makes searching less intuitive I think.

So, as mentioned in the discussion, I've added a new 'list_borrowers' permission,
completely independent of 'edit_borrowers', so that I can search for a member via the interface
and get the results. In addition to the permission to perform check in and checkouts, this no longer poses an obstacle to simple use.

Test plan:

1) Check with a user without 'edit_borrowers' permission that the patron search can only be performed with cardnumber
2) Apply this patch
3) Make the updatedatabase to add new 'list_borrowers' permissions
4) Set 'list_borrowers' permission on one user and see the difference

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit fc75a344b89198e7e12a534111132cb7f37baf18)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
api/v1/swagger/paths/patrons.yaml
installer/data/mysql/atomicupdate/bug_30230_add-new-list-borrowers-permission.pl [new file with mode: 0755]
installer/data/mysql/mandatory/userpermissions.sql
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-header.inc
koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt
members/member.pl
members/members-home.pl
members/moremember.pl