edit_items permissions were not set for an existing system
This would have propted user to loose some edit rights.
This patch enables the edit_items provided that they had editcatalogue permissions
}
+$DBversion = '3.00.06.008';
+if (C4::Context->preference('Version') < TransformToNum($DBversion)){
+ $dbh->do("INSERT INTO `user_permissions` (borrowernumber,`module_bit` , `code` ) (SELECT borrowernumber, '9', 'edit_items' FROM borrowers WHERE (flags<<9 && 00000001));");
+ print "Upgrade to $DBversion done (updating permissions for catalogers)\n";
+ SetVersion ($DBversion);
+}
+
+
=item DropAllForeignKeys($table)
use strict;
sub kohaversion {
- our $VERSION = '3.00.06.007';
+ our $VERSION = '3.00.06.008';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install