Bugzilla – Attachment 30343 Details for
Bug 7292
New permission for claims
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7292: Add new permission to users that have 'order_receive' permission
Bug-7292-Add-new-permission-to-users-that-have-ord.patch (text/plain), 1.51 KB, created by
Julian Maurice
on 2014-07-30 14:47:15 UTC
(
hide
)
Description:
Bug 7292: Add new permission to users that have 'order_receive' permission
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2014-07-30 14:47:15 UTC
Size:
1.51 KB
patch
obsolete
>From 7fc9eae5a162dcb80b880f01a3f83299ad23da06 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 28 Mar 2014 11:19:34 +0100 >Subject: [PATCH] Bug 7292: Add new permission to users that have > 'order_receive' permission > >Signed-off-by: Paola Rossi <paola.rossi@cineca.it> >--- > installer/data/mysql/updatedatabase.pl | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 93500f8..96f2b84 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -8579,12 +8579,21 @@ if ( CheckVersion($DBversion) ) { > > $DBversion = "XXX"; > if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { >- $dbh->do(" >+ $dbh->do(q{ > INSERT IGNORE INTO permissions (module_bit, code, description) > VALUES (11, 'order_claim_for_all', 'Claim for all orders') >- "); >+ }); >+ >+ # Add this new permission to all users that have 'order_receive' permission >+ $dbh->do(q{ >+ INSERT INTO user_permissions (borrowernumber, module_bit, code) >+ SELECT borrowernumber, 11, 'order_claim_for_all' >+ FROM user_permissions >+ WHERE code = 'order_receive' >+ GROUP BY borrowernumber >+ }); > >- print "Upgrade to $DBversion done (Add permission order_claim_for_all)\n"; >+ print "Upgrade to $DBversion done (Bug 7292: Add permission order_claim_for_all)\n"; > SetVersion($DBversion); > } > >-- >1.7.10.4
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 7292
:
9618
|
10968
|
11284
|
14518
|
21354
|
25078
|
25079
|
26355
|
26356
|
26357
|
26677
|
28462
|
28463
|
28464
|
28465
|
28484
|
28485
|
28486
|
28487
|
30341
|
30342
| 30343 |
30344
|
30345