]> 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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 29 Jan 2024 11:25:08 +0000 (12:25 +0100)
commitfc75a344b89198e7e12a534111132cb7f37baf18
tree6270a9690c654a8acfe30a6f36e12806b85f9fc1
parentc1bf46d1e77c4b4bc8d6c6c1df0a5d5d9a953bfd
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>
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