Koha-clms/Koha/REST
Tomas Cohen Arazi ea0696831f Bug 27330: Return 403 if club has no enrollments
This patch makes the controller script return a 403 as it should [1]
instead of a plain 500.

To test:
1. Apply the regressions tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/clubs_holds.t
=> FAIL: Tests fail!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

[1] https://www.restapitutorial.com/httpstatuscodes.html

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

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-01 16:36:38 +01:00
..
Plugin Bug 27034: Do not use path parameters on building the query 2021-01-29 09:03:45 +01:00
V1 Bug 27330: Return 403 if club has no enrollments 2021-02-01 16:36:38 +01:00
V1.pm Bug 25504: (QA follow-up) Remove unused include 2020-08-31 16:10:25 +02:00