Koha-clms/Koha/REST/V1
Tomas Cohen Arazi 57bb4ee95e Bug 26322: [19.11.x] Permissions not checked correctly for plugins
This patch fixes the logic in a condition to address the fact that
permissions are not checked for plugins. This was due to bad parenthesis
pairing and the lack of good tests for this.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/REST/Plugin/PluginRoutes.t
=> FAIL: Tests fail because of bad logic
3. Apply this patch
4. Repeat (2)
=> SUCCESS: Tests pass!
5. Verify the tests cover the use cases that are needed:
   - Anonymous access
   - Real user with wrong permissions (parameters => 1)
   - Real user with right permissions (borrowers => 1)
=> SUCCESS: Needed use cases so we catch any regression are found
6. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
2020-09-22 10:15:23 +12:00
..
Acquisitions Bug 23858: (follow-up) Return code fix 2019-10-28 12:36:46 +00:00
Clubs Bug 23843: Add mapping to Koha::Club::Holds 2019-10-23 18:03:03 +01:00
Patrons Bug 23805: Update 'Pay' to 'PAYMENT' for consistency 2019-10-24 17:35:20 +01:00
Auth.pm Bug 26322: [19.11.x] Permissions not checked correctly for plugins 2020-09-22 10:15:23 +12:00
Biblios.pm Bug 24909: Add unprivileged route to get a bibliographic record 2020-06-15 10:38:33 +12:00
Checkouts.pm Bug 23843: Add mapping to Koha::Checkout 2019-10-23 18:02:59 +01:00
Cities.pm Bug 23893: Use in /cities 2020-01-18 15:59:49 +00:00
Holds.pm Bug 23843: Add mapping to Koha::Hold 2019-10-23 18:03:07 +01:00
Illrequests.pm Bug 21460: (follow-up) Fix bugs found in QA 2019-04-25 10:46:56 +00:00
Items.pm Bug 23667: Add route to GET /items 2019-10-29 12:20:35 +00:00
Library.pm Bug 23843: Add mapping to Koha::Library 2019-10-23 18:03:11 +01:00
OAuth.pm Bug 23146: Add support for Basic auth on the OAuth2 token endpoint 2019-06-24 16:05:31 +01:00
Patrons.pm Bug 23634: (QA follow-up) Our PUT is really a PATCH 2020-08-25 15:36:33 +12:00
ReturnClaims.pm Bug 14697: (QA follow-up) Organize tests in subtests 2019-10-31 12:05:14 +00:00
Stage.pm Revert "Bug 22026: Removed 'use Modern::Perl;' from Koha::REST::classes" 2019-02-26 11:04:08 -05:00
Static.pm Bug 22835: (follow-up) Remove comented code 2019-06-18 17:34:53 +01:00