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>
(cherry picked from commit ae069f57ec)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
6835058093
commit
b129a7bbc0
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1943,7 +1943,7 @@ subtest 'add_item() tests' => sub {
|
|||
value => {
|
||||
borrowernumber => $patron->borrowernumber,
|
||||
module_bit => 9,
|
||||
code => 'edit_catalogue'
|
||||
code => 'edit_items'
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
@ -2005,7 +2005,7 @@ subtest 'update_item() tests' => sub {
|
|||
value => {
|
||||
borrowernumber => $patron->borrowernumber,
|
||||
module_bit => 9,
|
||||
code => 'edit_catalogue'
|
||||
code => 'edit_items'
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue