Bugzilla – Attachment 137848 Details for
Bug 30335
Add ability to hide/disable manual invoices and manual credits in patron accounts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30335: (follow-up) Ensure existing users remain permitted
Bug-30335-follow-up-Ensure-existing-users-remain-p.patch (text/plain), 1.97 KB, created by
Katrin Fischer
on 2022-07-18 20:41:24 UTC
(
hide
)
Description:
Bug 30335: (follow-up) Ensure existing users remain permitted
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-07-18 20:41:24 UTC
Size:
1.97 KB
patch
obsolete
>From d7834dff46c9ec56901396b0895888ba2bb86237 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 15 Jul 2022 17:21:13 +0100 >Subject: [PATCH] Bug 30335: (follow-up) Ensure existing users remain permitted > >This patch updates the database update to ensure users with the >'remaining_permissions' subpermission of 'updatecharges' continue to be >able to manually invoice and manually credit borrower accounts after the >patch is applied. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > installer/data/mysql/atomicupdate/bug_30335.pl | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_30335.pl b/installer/data/mysql/atomicupdate/bug_30335.pl >index 3afb3b2148..127439d5dd 100644 >--- a/installer/data/mysql/atomicupdate/bug_30335.pl >+++ b/installer/data/mysql/atomicupdate/bug_30335.pl >@@ -1,15 +1,25 @@ > use Modern::Perl; > > return { >- bug_number => "30335", >+ bug_number => "30335", > description => "Add manual_invoice and manual_credit permissions", >- up => sub { >+ up => sub { > my ($args) = @_; >- my ($dbh, $out) = @$args{qw(dbh out)}; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; > $dbh->do(q{ > INSERT IGNORE permissions (module_bit, code, description) VALUES > (10, 'manual_credit', 'Add manual credits to a patron account'), > (10, 'manual_invoice', 'Add manual invoices to a patron account') > }); >+ >+ $dbh->do(q{ >+ INSERT IGNORE INTO user_permissions (borrowernumber, module_bit, code) >+ SELECT borrowernumber, 10, 'manual_credit' FROM user_permissions WHERE code = 'remaining_permissions' >+ }); >+ >+ $dbh->do(q{ >+ INSERT IGNORE INTO user_permissions (borrowernumber, module_bit, code) >+ SELECT borrowernumber, 10, 'manual_invoice' FROM user_permissions WHERE code = 'remaining_permissions' >+ }); > }, > }; >-- >2.30.2
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 30335
:
132031
|
136796
|
137777
|
137778
|
137779
|
137784
|
137845
|
137846
|
137847
| 137848