Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
$ctx->{authtoken} = $e->authtoken;
$ctx->{authtime} = $e->authtime;
$ctx->{user} = $e->requestor;
- $ctx->{active_card} = $self->editor->retrieve_actor_card($ctx->{user}->card)->barcode;
+ my $card = $self->editor->retrieve_actor_card($ctx->{user}->card);
+ $ctx->{active_card} = (ref $card) ? $card->barcode : undef;
$ctx->{place_unfillable} = 1 if $e->requestor->wsid && $e->allowed('PLACE_UNFILLABLE_HOLD', $e->requestor->ws_ou);
# The browser client does not set an OILS-Wrapper header (above).