Bug 42062: correct permissions check in template file
To test: 1 - have a biblio with circulation history 2 - confirm syspref intranetreadinghistory is enabled and you're logged in as a user with permissions view_checkout_history and circulate_remaining_permissions (or superlibrarian or top-level borrowers and circulation permissions) 3 - load the checkout history page on your biblio record 4 - confirm there is no Patron column and that column is not hidden via column config 5 - apply patch, restart services, reload page 6 - confirm Patron column is present Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
656da5cb4b
commit
75b7cc4a95
|
|
@ -41,7 +41,7 @@
|
|||
<h1>Checkout history for [% INCLUDE 'biblio-title.inc' %]</h1>
|
||||
[% IF biblio.author %]<h3>by [% biblio.author | html %]</h3>[% END %]
|
||||
|
||||
[% SET show_patron_column = (CAN_user_borrowers_view_checkout_history && Koha.Preference('intranetreadinghistory')) AND CAN_user_circulate_remaining_permissions %]
|
||||
[% SET show_patron_column = (CAN_user_borrowers_view_checkout_history && Koha.Preference('intranetreadinghistory')) AND CAN_user_circulate_circulate_remaining_permissions %]
|
||||
|
||||
<div class="searchresults page-section">
|
||||
[% IF checkouts %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue