Bug 22617: Fix checkout notes typo in manage_checkout_notes permission usage
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 14 Jun 2019 08:43:15 +0000 (10:43 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 21 Jun 2019 12:09:53 +0000 (13:09 +0100)
commit206498dc5585fbd555181a1b241d5049632870df
treea1689c4e424b152c94dddc473bdee584015c7903
parent49e0384f10f659e337fac1b08e6bdd2c163151ae
Bug 22617: Fix checkout notes typo in manage_checkout_notes permission usage

When logged into the staff client with an account with full circulate permissions (and therefore including the manage_checkout_notes permission) an error occurs when clicking on the Checkout notes pending link.  The account is logged out automatically with the message:  "Error: you do not have permission to view this page.  Log in as a different user".
The same error occurs for both the link on the home page dashboard and from the Circulation module button.  Works as expected if Superlibrarian permission is set.

This is just a typo in perl script : circulation instead of circulate

Test plan :
1) Set preference "AllowCheckoutNotes" to "Allow"
2) Create a user with only permissions "catalogue" and "circulate > manage_checkout_notes"
3) Loggin with this user
4) Go to "Circulation" home page
5) Click on "Checkout notes"
6) You should be allowed to access

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
circ/checkout-notes.pl