From fd65d2264e830c1a41e2cbfbe94049ca7d1eddda Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 25 Jan 2016 10:31:34 +0000 Subject: [PATCH] Bug 14244: Does not display patron's info in the checkout history if not authorised MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The librarian needs CAN_user_circulate_circulate_remaining_permissions to see the checkouts patron's information. Test plan: The "Patron" column of the checkout history page should only be displayed of you have the circulate > circulate_remaining_permissions permission. Signed-off-by: Marc Véron Signed-off-by: Kyle M Hall Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com (cherry picked from commit 818b1871519f0348cc54a60c76e2c8192f36bb3c) Signed-off-by: Julian Maurice --- .../intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt index 89531f438e..e7224828aa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt @@ -38,7 +38,8 @@ $(document).ready(function() {

Checked out [% total %] times

- [% IF Koha.Preference('intranetreadinghistory') %] + [% IF Koha.Preference('intranetreadinghistory') + AND CAN_user_circulate_circulate_remaining_permissions %] [% END %] @@ -51,7 +52,8 @@ $(document).ready(function() { [% FOREACH issue IN issues %] - [% IF Koha.Preference('intranetreadinghistory') %] + [% IF Koha.Preference('intranetreadinghistory') + AND CAN_user_circulate_circulate_remaining_permissions %] [% END %]
PatronBarcode
[% IF HidePatronName %][% issue.cardnumber %][% ELSE %][% issue.surname %][% IF ( issue.firstname ) %], [% issue.firstname %][% END %][% END %][% IF ( issue.barcode ) %] -- 2.39.5