From b57d9af154bf6fe5d2c85262212765b0d1fe2bde Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 14 Jan 2015 22:57:37 +0000 Subject: [PATCH] Bug 13583 - Able to view menu for Statistics even when user does not have permission Added check for borrowers that stops the Statistics link being shown. This could be done through the css but that function currently appears to be broke Testing Plan: -Search for a patron with an account that does not have the 'borrowers' permission *Statistics should not be seen in the menu. -Change the accounts permissions so they have the 'borrowers' permission *Statistics should be present in the menu. Signed-off-by: Katrin Fischer Works as described. Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc index 9eb5c6dfe4..49a29ccbb4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -80,7 +80,10 @@ [% IF ( EnhancedMessagingPreferences ) %] [% IF ( sentnotices ) %]
  • [% ELSE %]
  • [% END %]Notices
  • [% END %] - [% IF ( statisticsview ) %]
  • [% ELSE %]
  • [% END %]Statistics
  • + + [% IF ( CAN_user_borrowers ) %] + [% IF ( statisticsview ) %]
  • [% ELSE %]
  • [% END %]Statistics
  • + [% END %] [% IF EnableBorrowerFiles %] [% IF ( borrower_files ) %]
  • [% ELSE %]
  • [% END %]Files
  • [% END %] -- 2.39.5