View | Details | Raw Unified | Return to bug 22929
Collapse All | Expand All

(-)a/C4/Auth.pm (-2 / +2 lines)
Lines 172-179 sub get_template_and_user { Link Here
172
    }
172
    }
173
173
174
    # If we enforce GDPR and the user did not consent, redirect
174
    # If we enforce GDPR and the user did not consent, redirect
175
    # Exceptions for consent page itself and SCI/SCO system
175
    if( $in->{type} eq 'opac' && $user &&
176
    if( $in->{type} eq 'opac' && $user &&
176
        $in->{'template_name'} !~ /opac-patron-consent/ &&
177
        $in->{'template_name'} !~ /^(opac-patron-consent|sc[io]\/)/ &&
177
        C4::Context->preference('GDPR_Policy') eq 'Enforced' )
178
        C4::Context->preference('GDPR_Policy') eq 'Enforced' )
178
    {
179
    {
179
        my $consent = Koha::Patron::Consents->search({
180
        my $consent = Koha::Patron::Consents->search({
180
- 

Return to bug 22929