bug_8083: Explanation of update query
authorSrdjan <srdjan@catalyst.net.nz>
Wed, 18 Jul 2012 05:53:31 +0000 (17:53 +1200)
committerPaul 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

index e762b7c..1c3c76b 100755 (executable)
@@ -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)");