Bug 20479: (follow-up) Don't try to get flags for database user

Login will still break in opac-user.pl, but that seems a bigger problem
not from SCI module

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Nick Clemens 2018-03-27 15:05:57 +00:00 committed by Jonathan Druart
parent 51d7a02726
commit d8b3497368

View file

@ -204,7 +204,7 @@ sub get_template_and_user {
$in->{template_name} =~ m|sco/| && haspermission(
$user, { self_check => 'self_checkout_module' }
)
) && Koha::Patrons->find({userid=>$user})->flags != 1
) && Koha::Patrons->find({userid=>$user}) && Koha::Patrons->find({userid=>$user})->flags != 1
)
{
$kick_out = 1;