From 5b9ed679c5bf0c5fb319620cbc60211e53464eab Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Mon, 23 Nov 2009 17:05:55 +0100 Subject: [PATCH] haspermission signature had changed --- C4/Auth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 3c34abc2e9..608fd9b745 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -698,7 +698,7 @@ sub checkauth { } if ($return) { _session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},localtime); - if ( $flags = haspermission( $dbh, $userid, $flagsrequired ) ) { + if ( $flags = haspermission( $userid, $flagsrequired ) ) { $loggedin = 1; } else { @@ -1081,7 +1081,7 @@ sub check_api_auth { } else { ( $return, $cardnumber ) = checkpw( $dbh, $userid, $password, $query ); } - if ($return and haspermission( $dbh, $userid, $flagsrequired)) { + if ($return and haspermission( $userid, $flagsrequired)) { my $session = get_session(""); return ("failed", undef, undef) unless $session; -- 2.39.5