Bug 8160 - Link to cataloging appears for users without cataloging permission
authorOwen Leonard <oleonard@myacpl.org>
Tue, 29 May 2012 15:30:28 +0000 (11:30 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 5 Jun 2012 19:48:38 +0000 (07:48 +1200)
commit79a4a67a0fbec40c11de72f7356512ce961c9cf3
treef16942f5b47d6646f21fb2718985c3d5ca23f71a
parentb586525d5519ca579b9293edef4c05c57ca20c51
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 <chris@bigballofwax.co.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt