Updatedatabase : Updating edititems permissions
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
This commit is contained in:
parent
aab4cf45cc
commit
d1af689a3b
|
|
@ -746,6 +746,14 @@ if (C4::Context->preference('Version') < TransformToNum($DBversion)){
|
|||
}
|
||||
|
||||
|
||||
$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)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue