Bugzilla – Attachment 190283 Details for
Bug 35953
Add delete_any_record cataloguing subpermission
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35953: Add new permission delete_bibliographic_records for patrons with edit_catalogue permission
0003-Bug-35953-Add-new-permission-delete_bibliographic_re.patch (text/plain), 1.61 KB, created by
Emmi Takkinen
on 2025-12-08 11:41:15 UTC
(
hide
)
Description:
Bug 35953: Add new permission delete_bibliographic_records for patrons with edit_catalogue permission
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2025-12-08 11:41:15 UTC
Size:
1.61 KB
patch
obsolete
>From 5d0bc0fbdd0f6a57208d159df277e273ed27301c Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Mon, 8 Dec 2025 12:44:55 +0200 >Subject: [PATCH 3/3] Bug 35953: Add new permission > delete_bibliographic_records for patrons with edit_catalogue permission > >This patch adds new permission delete_bibliographic_records for >all patrons who have subpermission edit_catalogue. Patrons with >full editcatalogue permissions get permission autmatically. > >To test: >1. Find patron with subpermission edit_catalogue (or add it for >any patron). >2. Apply this patch. >3. Run updatedatabase.pl. >=> Confirm patron now has also subpermission >delete_bibliographic_records. > >Sponsored-by: Koha-Suomi Oy >--- > installer/data/mysql/atomicupdate/bug_35953.pl | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_35953.pl b/installer/data/mysql/atomicupdate/bug_35953.pl >index 535d7cc600..b9489d21ea 100755 >--- a/installer/data/mysql/atomicupdate/bug_35953.pl >+++ b/installer/data/mysql/atomicupdate/bug_35953.pl >@@ -14,6 +14,9 @@ return { > > say $out "Added new permission delete_bibliographic_records"; > >- say $out "Add new permission delete_bibliographic_records for patrons"; >+ $dbh->do( >+ q{INSERT IGNORE INTO user_permissions (borrowernumber, module_bit, code) SELECT borrowernumber, module_bit, 'delete_bibliographic_records' FROM user_permissions where module_bit = 9 and code = 'edit_catalogue';} >+ ); >+ say $out "Add new permission delete_bibliographic_records for patrons with edit_catalogue permission"; > }, > }; >-- >2.34.1 >
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 35953
:
161720
|
161859
|
162129
|
162402
|
190281
|
190282
| 190283