]> git.koha-community.org Git - koha.git/commit
Bug 26181: Disable override by default in /holds
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 10 Aug 2020 20:30:25 +0000 (17:30 -0300)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 22 Feb 2021 22:48:44 +0000 (22:48 +0000)
commitc975904ea045422b57556e158a6e1620cba698a5
treee48731997b5504b7b1ad751cb092716f1f796274
parentb496557b41e9d100936246f7b2e637ff55beba79
Bug 26181: Disable override by default in /holds

This patch disables AllowHoldPolicyOverride by default in /holds. It
also adds a header that can be used to request the override explicitly.

Tests are added for this behaviour

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

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 15fcd755a24b07fc959210d2cb812d571bea3faf)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 43dd10cd2a328659089e0067b5cbd1fced601017)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/REST/V1/Holds.pm
api/v1/swagger/paths/holds.json