]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 10 Sep 2024 13:17:57 +0000 (15:17 +0200)
commitaf81d2bf659c149bbfe248b9122b275a524830b5
tree39a31b9aec86c1c1de57b79cf831978ed5d7b833
parent77c31b900d1edbc765dd979b6c3ed03745708f37
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>
(cherry picked from commit 435211adbc230514f4c0c370bbe8002dafa595af)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
api/v1/swagger/paths/patrons.yaml
installer/data/mysql/atomicupdate/bug_29509.pl [new file with mode: 0755]