Bug 13583: (follow-up) Able to view menu for Statistics even when user does not have...
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 19 Jan 2015 13:09:52 +0000 (14:09 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 21 Jan 2015 14:56:46 +0000 (11:56 -0300)
Same changes as the previous patch, for the .tt file.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.tt

index a9fde3c..2a1da6b 100644 (file)
@@ -81,7 +81,9 @@ in the global namespace %]
     [% IF ( EnhancedMessagingPreferences ) %]
     [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrower.borrowernumber %]">Notices</a></li>
     [% END %]
-    [% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrower.borrowernumber %]">Statistics</a></li>
+    [% IF ( CAN_user_borrowers ) %]
+        [% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrower.borrowernumber %]">Statistics</a></li>
+    [% END %]
     [% IF EnableBorrowerFiles %]
         [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrower.borrowernumber %]">Files</a></li>
     [% END %]