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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 16 Jul 2019 06:38:23 +0000 (08:38 +0200)
commit79bafa2aa84bcb135ebbbc98bf485356be37c98b
tree759df7174431a4f9efa891b7e1312bfad9d42aa9
parent4055497a8c5e2e983e85e3a1f34d1fa285ca9659
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>
(cherry picked from commit 206498dc5585fbd555181a1b241d5049632870df)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
circ/checkout-notes.pl