remove an assertion

This commit is contained in:
Tian Liao 2024-04-24 12:17:44 +08:00
commit 39be08c0db

View file

@ -55,11 +55,6 @@ namespace // put the utils within this TU
{ {
static auto enabled = [] static auto enabled = []
{ {
if (CurrentUserId == nullptr)
{
throw std::logic_error{ "SetCurrentUser must be invoked at least once." };
}
auto user = User::GetFromId(CurrentUserId); auto user = User::GetFromId(CurrentUserId);
if (user == nullptr) if (user == nullptr)
{ {