You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simon Nebesnuick edited this page Apr 2, 2024
·
1 revision
The Prison::VisitsController is used by prison staff to accept or reject a visit request. It instantiates a StaffResponse object which is responsible for validating the response. This ensures that a slot or rejection reason is selected, and that other essential details are present, such as which visitors are banned when that is the reason for rejection.
When the StaffResponse is valid, it is handed to the BookingResponder, which updates the Visit record with the new processing_state and saves any other information required.