From 12c6c94f867708da7a91a5708641c1cd94c0b872 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 29 May 2012 11:30:28 -0400 Subject: [PATCH] Bug 8160 - Link to cataloging appears for users without cataloging permission This patch wraps cataloging links on the staff client home page and in the header menu with checks for edit_catalogue OR edit_items permission. To test, access the staff client as a user with various permissions. The "cataloging" link on the main page and in the header menu should only appear to a user with edit_catalogue permission, edit_items permission, or both. Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain --- 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 4783523446..3d71d456d0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc @@ -16,7 +16,7 @@
  • Lists
  • - [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] + [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
  • Cataloging
  • [% END %] [% IF ( CAN_user_acquisition ) %] 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 0e9aed6980..492dca41d3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -41,7 +41,7 @@ Lists - [% IF ( CAN_user_catalogue || CAN_user_editcatalogue ) %] + [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
  • Cataloging
  • -- 2.39.5