don't look at cookies if bearer token was ok

This commit is contained in:
Shish 2023-12-17 00:08:06 +00:00
parent 77892c5d92
commit 64e6460f22

View file

@ -673,7 +673,7 @@ function _get_user(): User
}
}
}
if ($page->get_cookie("user") && $page->get_cookie("session")) {
if (is_null($my_user) && $page->get_cookie("user") && $page->get_cookie("session")) {
$my_user = User::by_session($page->get_cookie("user"), $page->get_cookie("session"));
}
if (is_null($my_user)) {