From 9c03f710221a4d17ee6e861fc0f3b3507716d249 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 17 Dec 2019 14:43:54 -0300 Subject: [PATCH] Bug 24232: Fix required permissions in DELETE /biblios/:biblio_id This patch fixes the required permissions defined on the spec for the mentioned endpoint. To test: 1. Apply the tests patch 2. Run: $ kshell k$ prove t/db_dependent/api/v1/biblios.t => FAIL: Tests fail due to badly defined permissions 3. Apply this patch 4. Repeat 2 => SUCCESS: Tests pass! Notice parameters: edit_catelogue didn't exist 5. Sign off :-D Signed-off-by: Kelly McElligott Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson (cherry picked from commit a7e5c5cfd17ca02c3b1c821bb458831b9a2494db) Signed-off-by: Lucas Gass --- api/v1/swagger/paths/biblios.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/swagger/paths/biblios.json b/api/v1/swagger/paths/biblios.json index f91d41c663..a2c5775fb5 100644 --- a/api/v1/swagger/paths/biblios.json +++ b/api/v1/swagger/paths/biblios.json @@ -56,7 +56,7 @@ }, "x-koha-authorization": { "permissions": { - "parameters": "edit_catalogue" + "editcatalogue": "edit_catalogue" } } } -- 2.39.2