This commit is contained in:
Alexander Tokmakov 2022-05-27 20:30:06 +02:00
parent 3d259fa0de
commit 7e659036f8

View File

@ -410,7 +410,7 @@ ContextMutablePtr Session::makeSessionContext(const String & session_name_, std:
prepared_client_info.reset();
/// Set user information for the new context: current profiles, roles, access rights.
if (user_id && !new_session_context->getUser())
if (user_id && !new_session_context->getAccess()->tryGetUser())
new_session_context->setUser(*user_id);
/// Session context is ready.