Lines 6347-6389
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
Link Here
|
6347 |
$DBversion = "3.11.00.016"; |
6347 |
$DBversion = "3.11.00.016"; |
6348 |
if ( CheckVersion($DBversion) ) { |
6348 |
if ( CheckVersion($DBversion) ) { |
6349 |
$dbh->do(q{ |
6349 |
$dbh->do(q{ |
6350 |
UPDATE userflags SET flagdesc="<b>Required for staff login.</b> Staff access, allows viewing of catalogue in staff client." where flag="catalogue"; |
6350 |
UPDATE userflags SET flagdesc="<b>Required for staff login.</b> Staff access, allows viewing of catalogue in staff client." where flagdesc="Modify login / permissions for staff users"; |
6351 |
}); |
6351 |
}); |
6352 |
$dbh->do(q{ |
6352 |
$dbh->do(q{ |
6353 |
UPDATE userflags SET flagdesc="Edit Authorities" where flag="editauthorities"; |
6353 |
UPDATE userflags SET flagdesc="Edit Authorities" where flagdesc="Allow to edit authorities"; |
6354 |
}); |
6354 |
}); |
6355 |
$dbh->do(q{ |
6355 |
$dbh->do(q{ |
6356 |
UPDATE userflags SET flagdesc="Allow access to the reports module" where flag="reports"; |
6356 |
UPDATE userflags SET flagdesc="Allow access to the reports module" where flagdesc="Allow to access to the reports module"; |
6357 |
}); |
6357 |
}); |
6358 |
$dbh->do(q{ |
6358 |
$dbh->do(q{ |
6359 |
UPDATE userflags SET flagdesc="Set library management parameters (deprecated)" where flag="management"; |
6359 |
UPDATE userflags SET flagdesc="Set library management parameters (deprecated)" where flagdesc="Set library management parameters"; |
6360 |
}); |
6360 |
}); |
6361 |
$dbh->do(q{ |
6361 |
$dbh->do(q{ |
6362 |
UPDATE userflags SET flagdesc="Manage serial subscriptions" where flag="serials"; |
6362 |
UPDATE userflags SET flagdesc="Manage serial subscriptions" where flagdesc="Allow to manage serials subscriptions"; |
6363 |
}); |
6363 |
}); |
6364 |
$dbh->do(q{ |
6364 |
$dbh->do(q{ |
6365 |
UPDATE userflags SET flagdesc="Manage patrons fines and fees" where flag="updatecharges"; |
6365 |
UPDATE userflags SET flagdesc="Manage patrons fines and fees" where flagdesc="Update borrower charges"; |
6366 |
}); |
6366 |
}); |
6367 |
$dbh->do(q{ |
6367 |
$dbh->do(q{ |
6368 |
UPDATE userflags SET flagdesc="Check out and check in items" where flag="circulate"; |
6368 |
UPDATE userflags SET flagdesc="Check out and check in items" where flagdesc="Circulate books"; |
6369 |
}); |
6369 |
}); |
6370 |
$dbh->do(q{ |
6370 |
$dbh->do(q{ |
6371 |
UPDATE userflags SET flagdesc="Manage Koha system settings (Administration panel)" where flag="parameters"; |
6371 |
UPDATE userflags SET flagdesc="Manage Koha system settings (Administration panel)" where flagdesc="Set Koha system parameters"; |
6372 |
}); |
6372 |
}); |
6373 |
$dbh->do(q{ |
6373 |
$dbh->do(q{ |
6374 |
UPDATE userflags SET flagdesc="Add or modify patrons" where flag="borrowers"; |
6374 |
UPDATE userflags SET flagdesc="Add or modify patrons" where flagdesc="Add or modify borrowers"; |
6375 |
}); |
6375 |
}); |
6376 |
$dbh->do(q{ |
6376 |
$dbh->do(q{ |
6377 |
UPDATE userflags SET flagdesc="Use all tools (expand for granular tools permissions)" where flag="tools"; |
6377 |
UPDATE userflags SET flagdesc="Use all tools (expand for granular tools permissions)" where flagdesc="Use tools (export, import, barcodes)"; |
6378 |
}); |
6378 |
}); |
6379 |
$dbh->do(q{ |
6379 |
$dbh->do(q{ |
6380 |
UPDATE userflags SET flagdesc="Allow staff members to modify permissions for other staff members" where flag="staffaccess"; |
6380 |
UPDATE userflags SET flagdesc="Allow staff members to modify permissions for other staff members" where flagdesc="Set user permissions"; |
6381 |
}); |
6381 |
}); |
6382 |
$dbh->do(q{ |
6382 |
$dbh->do(q{ |
6383 |
UPDATE userflags SET flagdesc="Perform batch modification of patrons" where flag="edit_patrons"; |
6383 |
UPDATE permissions SET flagdesc="Perform batch modification of patrons" where flagdesc="Perform batch modifivation of patrons"; |
6384 |
}); |
6384 |
}); |
6385 |
|
6385 |
|
6386 |
print "Upgrade to $DBversion done (Bug 9382 - refresh permission descriptions to make more sense)\n"; |
6386 |
print "Upgrade to $DBversion done (Bug 9382 (updated with bug 9745) - refresh permission descriptions to make more sense)\n"; |
6387 |
SetVersion ($DBversion); |
6387 |
SetVersion ($DBversion); |
6388 |
} |
6388 |
} |
6389 |
|
6389 |
|
6390 |
- |
|
|