haspermission signature had changed

This commit is contained in:
Henri-Damien LAURENT 2009-11-23 17:05:55 +01:00
parent 54b6b9bd1d
commit 5b9ed679c5

View file

@ -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;