]> git.koha-community.org Git - koha.git/commit
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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 11 Apr 2024 14:53:45 +0000 (16:53 +0200)
commit0b4bb48f2c8826e1837abe4b1218b89fd3ec3dd8
tree2813023957f92d4f3514e5b43a68b33e4c23ea82
parent33c7c8730bede4f84a9dc60a2c50170622295da9
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>
koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc