mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Update ContextAccess.cpp
This commit is contained in:
parent
430bb12a35
commit
d06486584b
@ -160,7 +160,7 @@ void ContextAccess::initialize()
|
||||
if(!ptr)
|
||||
return;
|
||||
UserPtr changed_user = entity ? typeid_cast<UserPtr>(entity) : nullptr;
|
||||
std::lock_guard lock{ptr->mutex};
|
||||
std::lock_guard lock2{ptr->mutex};
|
||||
ptr->setUser(changed_user);
|
||||
});
|
||||
setUser(access_control->read<User>(*params.user_id));
|
||||
|
Loading…
Reference in New Issue
Block a user