From 18660db90b9908a252475b496ec473e2c967912e Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Wed, 4 Apr 2018 12:09:52 +0100 Subject: [PATCH] Bug 20515 - "ILL Request" menu options displayed when user has no ILL This patch adds the following additional conditions to the display of both the ILL Requests drop down "More" menu option and the "ILL Requests" option on the intranet front page: Before: [% IF Koha.Preference('ILLModule') %] After: [% IF Koha.Preference('ILLModule') && (CAN_user_ill || CAN_user_superlibrarian) %] This prevents the options being displayed to users who have no permissions to work with ILL. Test plan: View both the intranet front page and "More" dropdown while logged in as a user without ILL permissions, ensure the options do not display. Then do the same with a user with ILL permissions, ensure the options do display. Signed-off-by: Mark Tompsett --- koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc index 46d8db8..73ed6f9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc @@ -28,7 +28,7 @@
  • Acquisitions
  • [% END %]
  • Authorities
  • - [% IF ( Koha.Preference('ILLModule') ) %] + [% IF ( Koha.Preference('ILLModule') && (CAN_user_ill || CAN_user_superlibrarian) ) %]
  • ILL Requests
  • [% END %] [% IF ( CAN_user_serials ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt index dc61992..64d4223 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -80,7 +80,7 @@
  • Authorities
  • - [% IF Koha.Preference('ILLModule') %] + [% IF Koha.Preference('ILLModule') && (CAN_user_ill || CAN_user_superlibrarian) %]
  • ILL requests
  • -- 2.1.4