Bug 35980: Check for CAN_user_borrowers_edit_borrowers in patron-toolbar.inc
authorBrendan Lawlor <blawlor@clamsnet.org>
Thu, 4 Apr 2024 18:29:07 +0000 (18:29 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 18 Apr 2024 06:40:09 +0000 (08:40 +0200)
commit1b041972c0ac3f18b38ce67134cc957c414dbfe6
tree3f5b5a555c118610d2aaee34aa9a65f2c40b5e5a
parentc2014f2949f8352c3f3496e8316cb74640ea45b3
Bug 35980: Check for CAN_user_borrowers_edit_borrowers in patron-toolbar.inc

This patch removes the 'New patron' and 'Quick add new patron' buttons from the patron tool bar that's included on members-home.pl

To test:
1. Log in with a user with only 'catalogue', 'list_borrowers' and 'manage_patron_lists' permissions
2. From the main page click on Patrons
3. Notice there are 'New patron' and 'Quick add new patron' buttons in the members-home.pl page that lead to permissions errors
4. Apply patch, restart all, reload the page
5. Notice the buttons to add new patrons are gone, but the button to manage patron lists is still there

Signed-off-by: Esther <esther@bywatersolutions.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 0b4bb48f2c8826e1837abe4b1218b89fd3ec3dd8)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc