]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 22 May 2020 08:04:06 +0000 (09:04 +0100)
commit8d0c44578524dc2bd7b380dac56a53382b5aca7e
treed574f26973e31311ff9ad7100ae740b881411d92
parent84bd1ac370db07d2b05c1c39433cb7963a98be71
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: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/Auth.pm