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
|
||
|---|---|---|
| .. | ||
| acquisitions_funds.json | ||
| acquisitions_orders.json | ||
| acquisitions_vendors.json | ||
| advancededitormacros.json | ||
| biblios.json | ||
| checkouts.json | ||
| circulation-rules.json | ||
| cities.json | ||
| clubs.json | ||
| config_smtp_servers.json | ||
| holds.json | ||
| ill_backends.json | ||
| illrequests.json | ||
| import_batch_profiles.json | ||
| items.json | ||
| libraries.json | ||
| oauth.json | ||
| patrons.json | ||
| patrons_account.json | ||
| patrons_password.json | ||
| public_patrons.json | ||
| return_claims.json | ||
| rotas.json | ||