Koha-clms/t/db_dependent/api/v1
Tomas Cohen Arazi 8083bc2ff0 Bug 22216: Make GET /patrons/{patron_id} staff only
This patch removes the possibility to access the patron object
identified by patron_id by the patron itself, or a guarantor.

It does so by removing the permissions from the spec. The tests are
adjusted to remove that use case.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/patrons.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-02-22 13:15:11 +00:00
..
acquisitions_vendors.t Bug 18120: /acquisitions/vendors unit tests 2017-09-29 17:13:13 -03:00
auth.t Bug 22061: Add a /public namespace that can be switched on/off 2019-01-28 15:45:54 +00:00
auth_authenticate_api_request.t Bug 22071: Regression tests 2019-01-04 03:13:39 +00:00
auth_basic.t Bug 22132: (QA follow-up) set_password now expects a hashref 2019-01-30 18:57:18 +00:00
cities.t Bug 22227: Make GET /cities staff only 2019-02-15 18:42:46 +00:00
holds.t Bug 21133: Fix use statements order 2018-07-31 16:28:02 -03:00
illrequests.t Bug 20600: (follow-up) Fix tests 2019-02-19 16:36:43 +00:00
libraries.t Bug 16497: Refactor tests using BASIC authentication 2019-02-19 13:52:14 +00:00
oauth.t Bug 20624: Net::OAuth2::AuthorizationServer is not a hard dependency 2018-05-09 12:56:03 -03:00
patrons.t Bug 22216: Make GET /patrons/{patron_id} staff only 2019-02-22 13:15:11 +00:00
patrons_accounts.t Bug 21786: Unit tests 2019-01-08 15:50:50 +00:00
patrons_password.t Bug 22061: (follow-up) set_password expects a hashref 2019-01-28 15:46:58 +00:00
stockrotationstage.t Bug 11897: Use 'stockrotation' permission for the endpoint 2018-10-09 15:46:06 +00:00