1 package Koha::Middleware::UserEnv;
4 use parent qw(Plack::Middleware);
10 Koha::Middleware::UserEnv - Middleware to ensure fresh userenv in all requests
16 This method is called for each request, and will unset the userenv to avoid contamination between requests.
21 my ( $self, $env ) = @_;
23 my $req = Plack::Request->new($env);
25 C4::Context->_unset_userenv;
27 return $self->app->($env);