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