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:
David Cook 2025-10-21 03:38:57 +00:00 committed by Martin Renvoize
parent 6ab8ba8d35
commit 0442f4ce2c
No known key found for this signature in database
GPG Key ID: 2D86E0EAEC83711B
1 changed files with 2 additions and 2 deletions

View File

@ -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" );
},