@@ -, +, @@ before the haspermission call so that a defined $userid with a value is being passed to the haspermission() method. --- C4/Auth.pm | 1 + 1 file changed, 1 insertion(+) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -1020,6 +1020,7 @@ sub checkauth { # $return: 1 = valid user, 2 = superlibrarian if ($return) { + $userid ||= $q_userid; #_session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},(strftime '%c', localtime)); if ( $flags = haspermission( $userid, $flagsrequired ) ) { --