Bug 30780: Librarians with only "place_holds" permissions can not update holds data...
authorJohanna Raisa <johanna.raisa@gmail.com>
Tue, 17 May 2022 05:58:15 +0000 (08:58 +0300)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 13 Jul 2022 19:39:25 +0000 (19:39 +0000)
commitc535da7219710a262f63e4af7883e060b0429ca5
tree2556f0437601dea7064275e5614a37f132e25f60
parent74318f76867d95a347b45852ea46c179bdfc9267
Bug 30780: Librarians with only "place_holds" permissions can not update holds data via REST API

This patch enables librarians with only "place_holds" permissions to cancel, suspend and resume holds via REST API.

Test plan:
1) Try to cancel or suspend a hold with only "place_holds" permissions
2) See that it is forbidden.
3) Apply the patch
4) Cancel a hold again
5) The cancellation succeeds
6) prove t/db_dependent/api/v1/holds.t

Sponsored-by: Koha-Suomi Oy
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 71a95d35574db31e21a6815fc696ee2b446c617e)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
api/v1/swagger/paths/holds.yaml