Bug 33363: (QA follow-up) Use say_success in atomic update
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
83df11e541
commit
377fde1b8f
1 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
use Modern::Perl;
|
||||
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
|
||||
|
||||
return {
|
||||
bug_number => "33363",
|
||||
|
@ -10,16 +11,17 @@ return {
|
|||
|
||||
$dbh->do(
|
||||
q{INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (12, 'suggestions_create', 'Create purchase suggestions')}
|
||||
);
|
||||
) && say_success($out, "Added new permissions suggestions_create");
|
||||
$dbh->do(
|
||||
q{INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (12, 'suggestions_delete', 'Update purchase suggestions')}
|
||||
);
|
||||
) && 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)}
|
||||
);
|
||||
) && 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)}
|
||||
);
|
||||
) && say_success($out, "Added new permissions suggestions_delete to patrons with suggestions_manage");
|
||||
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue