X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-patron-consent.pl;h=017e04e9be2b6d0683ae374aaaa5bf52f722344f;hb=9d6d641d1f8b77271800f43bc027b651f9aea52b;hp=8f7fb25c0a1d6459fb895669b11173ffc50095ff;hpb=dac230963dd69fe7a07b13ab69512728fce9f9fd;p=srvgit diff --git a/opac/opac-patron-consent.pl b/opac/opac-patron-consent.pl index 8f7fb25c0a..017e04e9be 100755 --- a/opac/opac-patron-consent.pl +++ b/opac/opac-patron-consent.pl @@ -4,31 +4,31 @@ # # This file is part of Koha. # -# Koha is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 3 of the License, or (at your option) any later -# version. +# Koha is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Koha is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# Koha is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Koha; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . use Modern::Perl; use CGI qw/-utf8/; -use C4::Auth qw/get_template_and_user/; -use C4::Output qw/output_html_with_http_headers/; -use Koha::DateUtils qw/dt_from_string/; +use C4::Auth qw( get_template_and_user ); +use C4::Output qw( output_html_with_http_headers ); +use Koha::DateUtils qw( dt_from_string ); use Koha::Patron::Consents; use Koha::Patrons; use constant GDPR_PROCESSING => 'GDPR_PROCESSING'; -my $query = new CGI; +my $query = CGI->new; my $op = $query->param('op') // q{}; my $gdpr_check = $query->param('gdpr_processing') // q{}; @@ -36,7 +36,6 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user({ template_name => "opac-patron-consent.tt", query => $query, type => "opac", - authnotrequired => 0, }); my $patron = Koha::Patrons->find($borrowernumber);