From 972607628e0b67edf3dbd9536e7aafb5007a7e8f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 18 Dec 2019 09:46:51 +0100 Subject: [PATCH] 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 Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson --- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt index b53bef41f9..9dce4fcaf3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt @@ -52,7 +52,7 @@ [% ELSE %] [% IF ( success ) %] - [% IF from_biblio.items.count == 0 %] + [% IF from_biblio.items.count == 0 && CAN_user_editcatalogue_edit_catalogue %]
The record [% from_biblio.title | html %] has [% from_biblio.items.count | html %] attached items. -- 2.39.5