};
}
sub owner_authorization {
my ($c, $method, $user) = @_;
if ($method eq 'set_public') {
my $patron_id = $c->match->stack->[-1]->{'patron_id'};
return $user->borrowernumber == $patron_id ? 1 : 0;
return 0;
1;
-