Bugzilla – Attachment 96457 Details for
Bug 24232
Fix permissions for deleting a bib record after attaching the last item to another bib
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24232: Hide the "Delete biblio" if permission edit_catalogue not set
Bug-24232-Hide-the-Delete-biblio-if-permission-edi.patch (text/plain), 1.57 KB, created by
Jonathan Druart
on 2019-12-18 18:34:06 UTC
(
hide
)
Description:
Bug 24232: Hide the "Delete biblio" if permission edit_catalogue not set
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-12-18 18:34:06 UTC
Size:
1.57 KB
patch
obsolete
>From 9b6d06df230c5037e547c68d2abd27e6a2ceba19 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <kelly@bywatersolutions.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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 %] > <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. >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24232
:
96388
|
96389
|
96393
|
96398
|
96434
|
96435
|
96436
|
96455
|
96456
| 96457