Bugzilla – Attachment 84593 Details for
Bug 16497
Add routes for library retrieval, update and deletion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16497: (follow-up) GET operations require staff access
Bug-16497-follow-up-GET-operations-require-staff-a.patch (text/plain), 1.34 KB, created by
Martin Renvoize (ashimema)
on 2019-01-31 15:58:51 UTC
(
hide
)
Description:
Bug 16497: (follow-up) GET operations require staff access
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-01-31 15:58:51 UTC
Size:
1.34 KB
patch
obsolete
>From 319ba1907c9de378242e5128cb1edb824df016d9 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 18 Jan 2019 12:02:38 -0300 >Subject: [PATCH] Bug 16497: (follow-up) GET operations require staff access > >With the introduction of the /public namespace all other endpoints, the >rest of the endpoints are restricted to privileged users. > >This patch makes the GET /libraries and GET /libraries/:library_id >endpoints require 'catalogue' permissions. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > api/v1/swagger/paths/libraries.json | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/api/v1/swagger/paths/libraries.json b/api/v1/swagger/paths/libraries.json >index 70249ed227..c4cd55b578 100644 >--- a/api/v1/swagger/paths/libraries.json >+++ b/api/v1/swagger/paths/libraries.json >@@ -152,6 +152,11 @@ > "$ref": "../definitions.json#/error" > } > } >+ }, >+ "x-koha-authorization": { >+ "permissions": { >+ "catalogue": "1" >+ } > } > }, > "post": { >@@ -253,6 +258,11 @@ > "$ref": "../definitions.json#/error" > } > } >+ }, >+ "x-koha-authorization": { >+ "permissions": { >+ "catalogue": "1" >+ } > } > }, > "put": { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16497
:
51454
|
52905
|
53818
|
53819
|
54943
|
60801
|
60802
|
61164
|
61165
|
63160
|
63161
|
66837
|
66838
|
68746
|
68747
|
68748
|
68838
|
68839
|
68840
|
68841
|
69508
|
83913
|
83914
|
83915
|
83916
|
83917
|
83943
|
83945
|
83946
|
83947
|
83948
|
83949
|
84198
|
84588
|
84589
|
84590
|
84591
|
84592
|
84593
|
84734
|
84769