Booking items failing autorenew

Bug #1979993 reported by Steve Callender
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Undecided
Unassigned

Bug Description

Tested in 3.7 but I suspect it's still an issue in current EG

When an item is also listed as a booking resource, the autorenewal process in the triggers will fail to autorenew based on the circulation user not having the VIEW_TRANSACTION permission.

It looks like the trail goes from,

OpenILS/Application/Circ/Circulate.pm > do_checkout sub
my $modify_to_start = $self->booking_adjusted_due_date()

sub booking_adjusted_due_date
my $bookings = $booking_ses->request('open-ils.booking.reservations.filtered_id_list', $self->editor->authtoken

OpenILS/Application/Booking.pm
sub reservation_list_by_filters
return $e->event unless $e->allowed('VIEW_TRANSACTION');

Since there is no staff member doing these checkouts, it uses the auth_internal service to create a session for the patron.

We need to instead either change the way booking is checked for upcoming reservations, or perhaps use the last staff member ID who began the circulation as the user to check.

Tags: booking
tags: added: booking
Revision history for this message
Elizabeth Davis (elidavis) wrote :

Can confirm this happens on our production server running 3.7.2.

Changed in evergreen:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.