Bug 38905: change permissions for item creation and modification

This patch changes the permissions to edit_items for item creation and modification via the API.

Test plan:
1) Apply the patch
2) prove t/db_dependent/api/v1/biblios.t

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Jan Kissig <bibliothek@th-wildau.de>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Johanna Räisä 2025-03-17 12:34:00 +02:00 committed by Katrin Fischer
parent 0473abdd62
commit ae069f57ec
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
2 changed files with 4 additions and 4 deletions

View file

@ -603,7 +603,7 @@
$ref: "../swagger.yaml#/definitions/error"
x-koha-authorization:
permissions:
editcatalogue: edit_catalogue
editcatalogue: edit_items
"/biblios/{biblio_id}/items/{item_id}":
put:
x-mojo-to: Biblios#update_item
@ -660,7 +660,7 @@
$ref: "../swagger.yaml#/definitions/error"
x-koha-authorization:
permissions:
editcatalogue: edit_catalogue
editcatalogue: edit_items
"/biblios/{biblio_id}/pickup_locations":
get:
x-mojo-to: Biblios#pickup_locations

View file

@ -1923,7 +1923,7 @@ subtest 'add_item() tests' => sub {
value => {
borrowernumber => $patron->borrowernumber,
module_bit => 9,
code => 'edit_catalogue'
code => 'edit_items'
}
}
);
@ -1986,7 +1986,7 @@ subtest 'update_item() tests' => sub {
value => {
borrowernumber => $patron->borrowernumber,
module_bit => 9,
code => 'edit_catalogue'
code => 'edit_items'
}
}
);