Bug 29914: (QA follow-up) Add comment to explain last case

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

JD amended patch: remove ref to line number

(cherry picked from commit a866722ae6)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
Nick Clemens 2022-01-24 14:23:29 +00:00 committed by Victor Grousset/tuxayo
parent 8c52a17ef2
commit c96e11338a
1 changed files with 2 additions and 0 deletions

View File

@ -1842,6 +1842,8 @@ sub check_cookie_auth {
} else {
return ( "anon", $session );
}
# If here user was logged in, but doesn't have correct permissions
# could be an 'else' at `if($flags) return "ok"` , but left here to catch any errors
$session->delete();
$session->flush;
C4::Context->_unset_userenv($sessionID);