[Bug 44219] New: ISO18626 requesting agencies cannot be edited or deleted with only the ill permission
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44219 Bug ID: 44219 Summary: ISO18626 requesting agencies cannot be edited or deleted with only the ill permission Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: ILL Assignee: koha-bugs@lists.koha-community.org Reporter: pedro.amorim@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org CC: lisette@bywatersolutions.com, pedro.amorim@openfifth.co.uk, tomascohen@gmail.com Target Milestone: --- -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44219 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44219 --- Comment #1 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 212301 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212301&action=edit Bug 44219: Require ill permission to update and delete ISO18626 requesting agencies PUT and DELETE on /api/v1/ill/iso18626_requesting_agencies/{id} required the erm permission instead of ill. Test plan: 1) Before applying the patch, log in as a staff patron with only the 'ill' permission 2) Go to http://localhost:8081/cgi-bin/koha/ill/iso18626_requesting_agencies and try to edit or delete a requesting agency, notice it fails 3) Apply the patch, run yarn api:bundle, restart plack 4) Repeat 2), notice it works 5) prove t/db_dependent/api/v1/iso18626/requesting_agencies.t Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44219 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch Assignee|koha-bugs@lists.koha-commun |pedro.amorim@openfifth.co.u |ity.org |k -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44219 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA CC| |david@davidnind.com --- Comment #2 from David Nind <david@davidnind.com> --- Failed QA as after the patch, yarn build and restart_all: 1. The tests fail [1] 2. Deleting works 3. Editing doesn't: get "Something went wrong: Error: Authorization failure. Missing required permission(s)." Testing notes (using KTD): 1. Enable the ILLModule 2. Edited Henry Acevedo's account so they can log in: - Edited username and password - Added permissions: . Staff access, allows viewing of catalogue in staff interface (catalogue) . Create and modify Interlibrary loan requests (ill) (note: search for just "ill" in the filter doesn't work) 3. Note: - Can't add requesting agencies as Henry - when you search ILL partner, for example, Walker (the only patron in the Inter-Library Loan category), you get no results - I added one using the koha user - When you edit it as Henry, the ILL partner field shows as "Invalid patron data (16)" - For the table listing requesting agencies, the ILL partner column shows as "A patron from another library", with link as STAFF-INTERFACE-URL/cgi-bin/koha/members/moremember.pl?borrowernumber=null 4. With the patch: - Deleting works - Editing doesn't: get "Something went wrong: Error: Authorization failure. Missing required permission(s)." -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org