https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666

--- Comment #133 from Andrii Nugged <[email protected]> ---
Created attachment 212082
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212082&action=edit
Bug 38666: Restrict queue actions to eligible closed stack requests

Resolve print and cancel targets through the same closed stack and
library filters used to display the retrieval queue. Reject missing or
out-of-scope targets with 404 before preparing a slip, marking it as
printed, or cancelling the hold.

Authentication and CSRF checks remain in place. Ordinary holds and
requests outside the active library scope must not become action targets
merely because their reserve_id was submitted.

Test plan:
Before applying this follow-up:
1. Apply the preceding closed stack request patches.
2. Run the new regression test without this handler change. The ordinary
   and foreign-library print/cancel cases fail because they are
   accepted.

Apply this follow-up.

After applying this follow-up:
1. Run the same regression test and confirm it passes.
2. Confirm eligible requests still print and cancel successfully.
3. Confirm rejected requests leave the hold and printed state unchanged.

Automated regression:
prove -v t/db_dependent/ClosedStackRequestActions.t

Co-Authored-By: Loontik <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to