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>
This commit is contained in:
parent
d7a04d4697
commit
12c6c94f86
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
<div class="bd">
|
||||
<ul>
|
||||
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
|
||||
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
|
||||
[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
|
||||
<li><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></li>
|
||||
[% END %]
|
||||
[% IF ( CAN_user_acquisition ) %]
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<a class="icon_general icon_lists" href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a>
|
||||
</li>
|
||||
|
||||
[% IF ( CAN_user_catalogue || CAN_user_editcatalogue ) %]
|
||||
[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
|
||||
<li>
|
||||
<a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue