use Modern::Perl;
use CGI qw ( -utf8 );
use C4::Members;
-use C4::Auth;
-use C4::Output;
+use C4::Auth qw( get_template_and_user );
+use C4::Output qw( output_html_with_http_headers );
use Koha::Account::Lines;
use Koha::Patrons;
use Koha::Plugins;
my @relatives;
# Filter out guarantees that don't want guarantor to see checkouts
- foreach my $gr ( $patron->guarantee_relationships() ) {
+ foreach my $gr ( $patron->guarantee_relationships->as_list ) {
my $g = $gr->guarantee;
if ( $g->privacy_guarantor_fines ) {