From d8b3497368b839e4fc594661719351efbe3433cc Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 27 Mar 2018 15:05:57 +0000 Subject: [PATCH] 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 Signed-off-by: Jonathan Druart --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 1b24c4fdb1..e0cbbc5677 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -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;