Bugzilla – Attachment 32077 Details for
Bug 7290
New permission for receiving all (independent of library)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7290: Add new permission to users that have 'order_receive'
Bug-7290-Add-new-permission-to-users-that-have-ord.patch (text/plain), 1.24 KB, created by
Julian Maurice
on 2014-10-09 08:17:10 UTC
(
hide
)
Description:
Bug 7290: Add new permission to users that have 'order_receive'
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2014-10-09 08:17:10 UTC
Size:
1.24 KB
patch
obsolete
>From 3c251a72da6d47a6294eddd27ad61d18f2955ba0 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 9 Oct 2014 10:15:16 +0200 >Subject: [PATCH] Bug 7290: Add new permission to users that have > 'order_receive' > >--- > installer/data/mysql/updatedatabase.pl | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 33880f4..6e7b4ce 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -8787,6 +8787,16 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { > INSERT INTO permissions (module_bit, code, description) > VALUES (11, 'order_receive_all', 'Receive 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_receive_all' >+ FROM user_permissions >+ WHERE code = 'order_receive' >+ GROUP BY borrowernumber >+ }); >+ > print "Upgrade to $DBversion done (Bug 7290: Add permission order_receive_all)\n"; > SetVersion($DBversion); > } >-- >1.9.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 7290
:
9314
|
9399
|
9944
|
11444
|
13214
|
14517
|
25068
|
26669
|
26671
|
26676
|
28386
|
28387
|
28388
|
28405
|
28406
|
28407
|
30337
|
30338
|
30339
|
30340
|
30926
|
30927
|
30928
|
32074
|
32075
|
32076
|
32077
|
35700
|
35701
|
35702
|
35935
|
35936
|
35937