]> git.koha-community.org Git - koha.git/commit
Bug 34999: Throw exception for public routes if OPACMaintenance is enabled
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 24 Nov 2023 10:50:54 +0000 (10:50 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 2 Feb 2024 16:22:25 +0000 (16:22 +0000)
commitd3ea6d8cbdd986efe580845d71f94cf495e4ede0
tree110a9d93f8160fbe8c854df3944a1bf4e2fd6ad3
parentdde9176e2c61e952b0596c6152808ac219874637
Bug 34999: Throw exception for public routes if OPACMaintenance is enabled

Test plan:
[1] Try public endpoint like /api/v1/public/biblios/X/items.
    * Replace X by an existing biblionumber.
    You should receive a 200.
[2] Enable OPACMaintenance. Set to Show.
[3] Try same endpoint. You should get a 503 with a json error.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 1fc82dd827ad298bead46583ada08c549afe8d8e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 24b14de39810261a8084ca74e2ea89feb5042faa)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/REST/V1/Auth.pm