Koha-clms/t/Koha
Brendan Lawlor 4376e369b2
Bug 35830: Add merge_borrowers subpermission
Merging patrons only required edit_borrowers permission
but would result in a patron deletion.

This patch requires a new merge_borrowers subpermission

To test:
1. Give a patron the following permissions
    catalogue, edit_borrowers, list_borrowers
2. Log into the staff interface as the patron
3. Do a patron search and select 2 patrons
4. Click merge patron - success - a patron got deleted
5. Apply patch, updatedatabase and restart_all
6. Repeat steps 3 and 4 - you can't
7. Add the new permission for merge_borrowers
8. Repeat steps 3 and 4 - now you can
9. prove t/Koha/Auth/Patrons.t

Sponsored-by: CLAMS
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 5ce9d5af4e)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
(cherry picked from commit 576b80bb1d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2025-12-04 10:34:54 +01:00
..
Auth Bug 35830: Add merge_borrowers subpermission 2025-12-04 10:34:54 +01:00
Authority
…
Database
…
DateTime/Format Bug 36486: Fix file perms and tidiness 2024-05-10 16:45:49 +02:00
I18N/po/xx_XX/LC_MESSAGES
…
Installer Bug 38299: Update tests 2024-11-18 17:44:38 +01:00
Middleware
…
Object
…
Plugins Bug 38488: Add Template::Toolkit filter for C4::Scrubber 2025-02-18 19:17:20 +01:00
REST/Plugin Bug 37389: Add tests 2024-08-02 18:59:53 +02:00
Result
…
SearchEngine Bug 33348: Tests 2024-11-11 14:12:14 +01:00
Util
…
Config.t
…
Email.t Bug 31627: (follow-up) Update -Id to -ID 2024-05-10 14:11:50 +02:00
Exceptions.t Bug 35248: Add test for Koha::Exceptions::Booking 2024-03-15 09:38:46 +01:00
I18N.t
…
ItemType.t
…
Manual.t Bug 40845: Remove hardcoded Koha version from t/Koha/Manual.t 2025-12-02 10:20:07 +01:00
Script.t
…
Script_cron.t
…
Z3950responder.t
…
sleep.pl
…
wait.pl
…