Bug 41045: Fix BZ 33363 database update
This patch fixes the BZ 33363 database update, so that it selects uses with the "suggestions" permission rather than the "catalogue" permission. Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
This commit is contained in:
parent
6ab8ba8d35
commit
0442f4ce2c
|
|
@ -17,10 +17,10 @@ return {
|
|||
) && say_success( $out, "Added new permissions suggestions_delete" );
|
||||
|
||||
$dbh->do(
|
||||
q{INSERT IGNORE INTO user_permissions (borrowernumber, module_bit, code) SELECT borrowernumber, 12, 'suggestions_create' FROM borrowers WHERE flags & (1 << 2)}
|
||||
q{INSERT IGNORE INTO user_permissions (borrowernumber, module_bit, code) SELECT borrowernumber, 12, 'suggestions_create' FROM borrowers WHERE flags & (1 << 12)}
|
||||
) && say_success( $out, "Added new permissions suggestions_create to patrons with suggestions_manage" );
|
||||
$dbh->do(
|
||||
q{INSERT IGNORE INTO user_permissions (borrowernumber, module_bit, code) SELECT borrowernumber, 12, 'suggestions_delete' FROM borrowers WHERE flags & (1 << 2)}
|
||||
q{INSERT IGNORE INTO user_permissions (borrowernumber, module_bit, code) SELECT borrowernumber, 12, 'suggestions_delete' FROM borrowers WHERE flags & (1 << 12)}
|
||||
) && say_success( $out, "Added new permissions suggestions_delete to patrons with suggestions_manage" );
|
||||
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue