projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1e5462
)
bug_8083: Explanation of update query
author
Srdjan
<srdjan@catalyst.net.nz>
Wed, 18 Jul 2012 05:53:31 +0000
(17:53 +1200)
committer
Paul Poulain
<paul.poulain@biblibre.com>
Mon, 23 Jul 2012 08:44:02 +0000
(10:44 +0200)
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
installer/data/mysql/updatedatabase.pl
patch
|
blob
|
history
diff --git
a/installer/data/mysql/updatedatabase.pl
b/installer/data/mysql/updatedatabase.pl
index
e762b7c
..
1c3c76b
100755
(executable)
--- a/
installer/data/mysql/updatedatabase.pl
+++ b/
installer/data/mysql/updatedatabase.pl
@@
-5547,6
+5547,8
@@
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$dbh->do("INSERT INTO user_permissions (borrowernumber, module_bit, code)
SELECT borrowernumber, 3, 'parameters_remaining_permissions'
FROM borrowers WHERE flags & (1 << 3)");
+ # Give new subpermissions to all users that have 'parameters' permission flag (bit 3) set
+ # see userflags table
$dbh->do("INSERT INTO user_permissions (borrowernumber, module_bit, code)
SELECT borrowernumber, 3, 'manage_circ_rules'
FROM borrowers WHERE flags & (1 << 3)");