Bugzilla – Attachment 28464 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.46 KB, created by
Julian Maurice
on 2014-05-23 12:10:44 UTC
(
hide
)
Description:
Bug 7292: Add new permission to users that have 'order_receive' permission
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2014-05-23 12:10:44 UTC
Size:
1.46 KB
patch
obsolete
>From d7f29d131e8b810b24d97d85b633fc5cce985b89 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 > >--- > 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 ae3cfd3..030e99e 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -8485,12 +8485,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