]> git.koha-community.org Git - koha.git/commit
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)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 5 Jun 2012 14:01:42 +0000 (16:01 +0200)
commit12c6c94f867708da7a91a5708641c1cd94c0b872
treeb1b9c34e8c490fab4f8f1fc30a19ca86ff687732
parentd7a04d46974693e28c25c211c954283ff42291df
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>
koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt