Bug 20515: (follow-up) Add missing CAN_user_ill
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Fri, 13 Apr 2018 10:41:37 +0000 (11:41 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 16 Apr 2018 16:59:34 +0000 (13:59 -0300)
This follow up patch adds two missing CAN_user_ill tests in templates

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
koha-tmpl/intranet-tmpl/prog/en/includes/ill-toolbar.inc

index 3be3942..dcdf1cc 100644 (file)
     [% IF Koha.Preference('HouseboundModule') %]
         [% IF houseboundview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber %]">Housebound</a></li>
     [% END %]
-    [% IF Koha.Preference('ILLModule') %]
+    [% IF Koha.Preference('ILLModule') && CAN_user_ill %]
         <li><a href="/cgi-bin/koha/ill/ill-requests.pl?borrowernumber=[% patron.borrowernumber %]">Interlibrary loans</a></li>
     [% END %]
 </ul></div>
index b747ee0..d725e26 100644 (file)
@@ -1,5 +1,5 @@
 [% USE Koha %]
-[% IF Koha.Preference('ILLModule ') %]
+[% IF Koha.Preference('ILLModule ') && CAN_user_ill %]
     <div id="toolbar" class="btn-toolbar">
         [% IF backends_available %]
           [% IF backends.size > 1 %]