mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
fix
This commit is contained in:
parent
3d259fa0de
commit
7e659036f8
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user