---
installer/data/mysql/updatedatabase.pl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/installer/data/mysql/updatedatabase.pl
b/installer/data/mysql/updatedatabase.pl
index b611f88..77e13ba 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -5257,6 +5257,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)");
--
1.7.9.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/