Bug 16497: (follow-up) GET operations require staff access
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 18 Jan 2019 15:02:38 +0000 (12:02 -0300)
committerroot <root@f1ebe1bec408>
Tue, 19 Feb 2019 13:52:14 +0000 (13:52 +0000)
commit562eaa154b9efa20431133db04823c4d36be742d
tree9d4332e1773ab77140f3c96ab0552ee65c8886b6
parent0718416ff1ca70a25bc12fa3b677fdeafd7854c8
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>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
api/v1/swagger/paths/libraries.json
t/db_dependent/api/v1/libraries.t