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:
parent
0473abdd62
commit
ae069f57ec
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue