]> git.koha-community.org Git - koha.git/commit
Bug 27760: Make authenticate_api_request call stash_overrides
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 25 Feb 2021 12:43:11 +0000 (09:43 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 4 May 2021 12:22:02 +0000 (14:22 +0200)
commit91ce8a098c7a7a3b42fff84a2f95e70e1d60dd16
tree209f4b2590eae60a6d0a3cfb385995624d1b4d14
parentc2cc6b401a286523dd5585520169a3da708d2f3b
Bug 27760: Make authenticate_api_request call stash_overrides

By making this method call the helper, we make sure the overrides
hashref is available to any controller to make us of it.

To test:
1. Apply this patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/auth_authenticate_api_request.t \
           t/Koha/REST/Plugin/Query.t
=> SUCCESS: Tests pass! The helper works as expected and the
authenticate_api_request method invokes it!
3. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/Auth.pm
t/db_dependent/api/v1/auth_authenticate_api_request.t