https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44270 --- Comment #6 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- Created attachment 212710 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212710&action=edit Bug 44270: (QA follow-up) Accept the permissions as C4::Auth::haspermission does insertSampleStaff now takes its permissions as the flagsrequired parameter of C4::Auth::haspermission, rather than "module" and "module:subpermission" strings, so that haspermission( userid, permissions ) is true for the created staff member: "tools" or { tools: 1 } the whole module { superlibrarian: 1 } superlibrarian { tools: "upload_manage" } a subpermission { borrowers: { edit_borrowers: 1, list_borrowers: 1 } } { tools: ["upload_manage", "export_catalog"] } ["circulate", { tools: "upload_manage" }] Where haspermission accepts any of a list (arrays), all of them are given. "*" (any module, or any subpermission of a module) does not say which permission to give, and is rejected. The notices management tests are adjusted. Test plan: npx cypress run --spec t/cypress/integration/t/insertData.ts,t/cypress/integration/Tools/NoticesManagement_spec.ts All pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.