Bug 36148: Do not deal with CSRF error in get_template_and_user
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Feb 2024 10:29:17 +0000 (11:29 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 1 Mar 2024 10:01:07 +0000 (11:01 +0100)
commit92d7b5e86c614fa0c906939404974cf5a33b3b56
tree7213fa787796bbc30a4b478335d93e68d7b8c4a0
parent22d680d54c193dac38729e9244d53e1141ed4082
Bug 36148: Do not deal with CSRF error in get_template_and_user

We deal with that in the middleware, we don't want 403.pl to early exit.
If we notice that we actually need it (for other scripts), we could
eventually add a new flag to get_template_and_user to skip the CSRF check,
or build the template without using get_template_and_user for errors/*
scripts.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Auth.pm