]> git.koha-community.org Git - koha.git/commit
Bug 29509: Update swagger specification and add permissions to users
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 22 Jan 2024 16:49:56 +0000 (16:49 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 28 Aug 2024 19:58:39 +0000 (19:58 +0000)
commit435211adbc230514f4c0c370bbe8002dafa595af
tree1cbc31b27a9456101456e52e9b97a596ed0511c6
parent120d987d926f7d8fda1add86f71908b46cfef498
Bug 29509: Update swagger specification and add permissions to users

This patch removes the 'edit_borrowers', 'manage_bookings',
'lable_creator', 'routing' and 'order_manage' permissions from the list
of options in the patrons list endpoint.

We then assign the new 'list_borrowers' permission to any users who have
those removed permissions

Test plan
1) Apply patch and run the database update
2) Users with any of the permissions listed above should now also have
   the 'list_borrowers' permission too.
3) Check that patron searching continues to work from the various
   locations in the UI for the above affected users

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
[EDIT] Incorporated second patch and removed 1<<4. 16 reads much better :)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 85ea79c45b6f95baee9ec955c6c09046808771b5)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
api/v1/swagger/paths/patrons.yaml
installer/data/mysql/atomicupdate/bug_29509.pl [new file with mode: 0755]