Bug 11819 - Don't show catalog edit menu if user has no edit permissions
authorOwen Leonard <oleonard@myacpl.org>
Fri, 21 Feb 2014 19:52:22 +0000 (14:52 -0500)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 6 Jun 2014 12:46:20 +0000 (08:46 -0400)
commitacc7c4a00bd80b6313d89f91a2668d6588599a49
tree961416ad4753507f545a25c612fff80fc744f9a4
parent38b7b27ccb19933d2a2eb5cd85a84f67634bde99
Bug 11819 - Don't show catalog edit menu if user has no edit permissions

Currently if the logged in user lacks any cataloging permissions the
bibliographic detail page (catalogue/detail.pl) still shows the Edit
button, but with an empty dropdown menu. This patch corrects the toolbar
include so that the button will not appear at all.

To test, view the biblio detail page as a user with various combinations
of the following permissions:

- edit_items
- edit_catalogue
- items_batchmod
- items_batchdel

The edit button should appear with the correct set of links when the
user has any combination of the above permissions. If user has none the
button should not appear.

Followed test plan, patch behaves as expected
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as expected, passes all tests and QA script.
Template only change.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit a8ebfa4702e2492388b6f60a11921a8ab69d677b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 257923800cdc7e87b2ae29a1e98b502fe7b8b3c6)
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc