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>
This commit is contained in:
parent
2345dc12d8
commit
a8ebfa4702
1 changed files with 2 additions and 0 deletions
|
@ -149,6 +149,7 @@ CAN_user_serials_create_subscription ) %]
|
|||
</div>
|
||||
[% END %]
|
||||
|
||||
[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items || CAN_user_tools_items_batchmod || CAN_user_tools_items_batchdel ) %]
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-pencil"></i> Edit <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu">
|
||||
|
@ -184,6 +185,7 @@ CAN_user_serials_create_subscription ) %]
|
|||
|
||||
</ul>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-download-alt"></i> Save <span class="caret"></span></button>
|
||||
|
|
Loading…
Reference in a new issue