Bug 10190: Fix patron_categories permission format
The x-koha-authorization was using 'parameters: catalogue' which the Koha auth system interprets as a 'catalogue' subpermission within the 'parameters' module (which doesn't exist), causing a 403 for any user. The correct format for the top-level 'catalogue' permission is 'catalogue: "1"', consistent with all other read-only API endpoints. Sponsored-by: Glasgow Colleges Library Group <https://library.cityofglasgowcollege.ac.uk> Signed-off-by: Michaela <michaela.sieber@kit.edu> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
bc461cdde1
commit
b760367e25
|
|
@ -51,7 +51,7 @@
|
|||
$ref: "../swagger.yaml#/definitions/error"
|
||||
x-koha-authorization:
|
||||
permissions:
|
||||
parameters: catalogue
|
||||
catalogue: "1"
|
||||
post:
|
||||
x-mojo-to: Patrons::Categories#add
|
||||
operationId: addCategory
|
||||
|
|
|
|||
Loading…
Reference in New Issue