From 3ac190145733ea7936204830a82a32605f436a39 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Wed, 4 Apr 2018 12:09:52 +0100 Subject: [PATCH] Bug 20515: Fix permission check on "ILL request" menu options 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 Signed-off-by: Katrin Fischer --- 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 46d8db8774..73ed6f9e79 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 dc619926ba..64d4223039 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.14.1