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

(-)a/C4/Auth.pm (-2 / +1 lines)
Lines 192-198 sub get_template_and_user { Link Here
192
    # If we enforce GDPR and the user did not consent, redirect
192
    # If we enforce GDPR and the user did not consent, redirect
193
    # Exceptions for consent page itself and SCI/SCO system
193
    # Exceptions for consent page itself and SCI/SCO system
194
    if( $in->{type} eq 'opac' && $user &&
194
    if( $in->{type} eq 'opac' && $user &&
195
        $in->{'template_name'} !~ /^(opac-patron-consent|sc[io]\/)/ &&
195
        $in->{'template_name'} !~ /^(opac-page|opac-patron-consent|sc[io]\/)/ &&
196
        C4::Context->preference('GDPR_Policy') eq 'Enforced' )
196
        C4::Context->preference('GDPR_Policy') eq 'Enforced' )
197
    {
197
    {
198
        my $consent = Koha::Patron::Consents->search({
198
        my $consent = Koha::Patron::Consents->search({
199
- 

Return to bug 31495