Alternate fix for Bug 5876, New permission for overdues report
authorOwen Leonard <oleonard@myacpl.org>
Thu, 5 May 2011 13:46:45 +0000 (09:46 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Sat, 16 Jul 2011 08:13:10 +0000 (20:13 +1200)
Original fix included a change for offline circ that depended
on a fix for another bug. This patch adds only the permission
for the overdues report and is formatted for TT.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt

index 6c2f69a..2383599 100644 (file)
@@ -38,9 +38,9 @@
        <li>    <a href="/cgi-bin/koha/circ/waitingreserves.pl" title="holds waiting for patron pickup">Holds awaiting pickup</a></li>
        <li>    <a href="/cgi-bin/koha/circ/reserveratios.pl">Hold ratios</a></li>
        <li>    <a href="/cgi-bin/koha/circ/transferstoreceive.pl" title="transfers to receive at your library">Transfers to receive</a></li>
-       <li>    <a href="/cgi-bin/koha/circ/overdue.pl">Overdues</a>
+       [% IF ( CAN_user_reports_execute_reports ) %]<li>    <a href="/cgi-bin/koha/circ/overdue.pl">Overdues</a>
        - <b>Warning:</b> This report is very resource intensive on
-       systems with large numbers of overdue items.</li>
+       systems with large numbers of overdue items.</li>[% END %]
        <li>    <a href="/cgi-bin/koha/circ/branchoverdues.pl">Overdues with fines</a> - Limited to your library.  See report help for other details.</li>
 <!--   <li>    <a href="/cgi-bin/koha/circ/billing.pl">Billing</a></li> -->
 <!--   <li>    <a href="/cgi-bin/koha/circ/stats.pl?time=yesterday">Daily reconciliation</a></li> -->