Bug 24232: Hide the "Delete biblio" if permission edit_catalogue not set
The script moveitem.pl requires editcatalogue => 'edit_items', the deletion of a biblio editcatalogue => edit_catalogue. Even if weird I guess we could have a librarian with edit_items but edit_catalogue. Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
62dcfa95da
commit
c9ca38dcdf
|
|
@ -52,7 +52,7 @@
|
|||
|
||||
[% ELSE %]
|
||||
[% IF ( success ) %]
|
||||
[% IF from_biblio.items.count == 0 %]
|
||||
[% IF from_biblio.items.count == 0 && CAN_user_editcatalogue_edit_catalogue %]
|
||||
<div class="dialog alert" id="del-bib-alert">
|
||||
<div id="del-bib-action">
|
||||
The record <em><a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% from_biblio.id | html %]">[% from_biblio.title | html %]</a></em> has [% from_biblio.items.count | html %] attached items.
|
||||
|
|
|
|||
Loading…
Reference in New Issue