Bug 14244: Does not display patron's info in the checkout history if not authorised
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 <veron@veron.ch> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
This commit is contained in:
parent
e8c5fb11fb
commit
818b187151
1 changed files with 4 additions and 2 deletions
|
@ -38,7 +38,8 @@ $(document).ready(function() {
|
|||
<h4>Checked out [% total %] times</h4>
|
||||
<table id="table_issues">
|
||||
<thead><tr>
|
||||
[% IF Koha.Preference('intranetreadinghistory') %]
|
||||
[% IF Koha.Preference('intranetreadinghistory')
|
||||
AND CAN_user_circulate_circulate_remaining_permissions %]
|
||||
<th>Patron</th>
|
||||
[% END %]
|
||||
<th>Barcode</th>
|
||||
|
@ -51,7 +52,8 @@ $(document).ready(function() {
|
|||
<tbody>
|
||||
[% FOREACH issue IN issues %]
|
||||
<tr>
|
||||
[% IF Koha.Preference('intranetreadinghistory') %]
|
||||
[% IF Koha.Preference('intranetreadinghistory')
|
||||
AND CAN_user_circulate_circulate_remaining_permissions %]
|
||||
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issue.borrowernumber %]">[% IF HidePatronName %][% issue.cardnumber %][% ELSE %][% issue.surname %][% IF ( issue.firstname ) %], [% issue.firstname %][% END %][% END %]</a></td>
|
||||
[% END %]
|
||||
<td>[% IF ( issue.barcode ) %]
|
||||
|
|
Loading…
Reference in a new issue