]> git.koha-community.org Git - koha.git/commit
Bug 25411: Add special handling for public plugin routes
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 14 May 2020 22:09:04 +0000 (19:09 -0300)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Sun, 21 Jun 2020 23:48:07 +0000 (11:48 +1200)
commit11fffb70ff81a51c05378c5b89f42d43b03ea89b
tree88893e5d39c16c8ac471530988d0ea18a527fa8f
parent8374d3bc8c569267b53b0d9da6a0c3fc11b6753f
Bug 25411: Add special handling for public plugin routes

This patch implements the required logic in the API code so plugins are
not affected by the new RESTPublicAnonymousRequests system preference.
It is up to the plugin develpers to handle this

To test:
1. Apply the tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/REST/Plugin/PluginRoutes.t
=> FAIL: Notice the tests fail
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass! Yay! Not bad for a friday evening!
5. Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Koha/REST/V1/Auth.pm