Bug 25787: Update club holds to only require place_holds permission

This moves the permission check from top level to the specific place_hold
permission

To test:
 1 - Create a club
 2 - Enroll some patrons
 3 - Find or create a staff user with 'place_holds' permission and catalogue permission
 4 -  Log in as that staff
 5 - Find a book and go to holds tab'
 6 - Search for your club
 7 - Try to place hold
 8 - Nothing happens FIXME we should alert of the 403 error or other
 9 - Apply patch, yanr build, restart_all
10 - Place hold
11 - Success!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Nick Clemens 2025-03-23 17:27:17 +00:00 committed by Katrin Fischer
parent b2636dee8a
commit b1592b4967
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -93,4 +93,4 @@
$ref: "../swagger.yaml#/definitions/error"
x-koha-authorization:
permissions:
reserveforothers: "1"
reserveforothers: place_holds