]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 22 Jul 2024 09:28:03 +0000 (10:28 +0100)
commit85ea79c45b6f95baee9ec955c6c09046808771b5
tree9729541ced1119477467a85edc993b3def01ed05
parent313f7e86b8b9bb063d07be292dd352c2f889fa99
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>
api/v1/swagger/paths/patrons.yaml
installer/data/mysql/atomicupdate/bug_29509.pl [new file with mode: 0755]