From e5cfa82d7de527a6944eb68bdef64cd08953c058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Moreira?= <3604053+cusspvz@users.noreply.github.com> Date: Tue, 18 Jul 2023 09:43:09 +0100 Subject: [PATCH] fix: extra single quote in error 5491300 --- src/mongo/db/query/allowed_contexts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mongo/db/query/allowed_contexts.cpp b/src/mongo/db/query/allowed_contexts.cpp index cce78af0a3b95..141603fd6f4db 100644 --- a/src/mongo/db/query/allowed_contexts.cpp +++ b/src/mongo/db/query/allowed_contexts.cpp @@ -107,7 +107,7 @@ void assertAllowedInternalIfRequired(const OperationContext* opCtx, const auto isInternal = isInternalClient(opCtx->getClient()); uassert(5491300, - str::stream() << operatorName << "' is not allowed in user requests", + str::stream() << operatorName << " is not allowed in user requests", !(allowedWithClientType == AllowedWithClientType::kInternal && !isInternal)); } } // namespace mongo