summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/dbcommands.cpp
diff options
context:
space:
mode:
authorSophia Tan <sophia_tll@hotmail.com>2022-08-03 05:40:35 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-03 06:32:21 +0000
commitf738dc2d800011ddbdec59ac4c3ea134d0982a75 (patch)
tree62fa06b8c63c9fbe6ed9944f42cd2e387379718c /src/mongo/db/commands/dbcommands.cpp
parenta64e8b26f542b3e3b3fd3b97fb6f46e8a378b74c (diff)
downloadmongo-f738dc2d800011ddbdec59ac4c3ea134d0982a75.tar.gz
SERVER-68398 Change BasicCommandWithReplyBuilderInterface::parseNs to take in DatabaseName and BSONObj and return NamespaceString object
Diffstat (limited to 'src/mongo/db/commands/dbcommands.cpp')
-rw-r--r--src/mongo/db/commands/dbcommands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/dbcommands.cpp b/src/mongo/db/commands/dbcommands.cpp
index 1c42ac72260..e18644c0649 100644
--- a/src/mongo/db/commands/dbcommands.cpp
+++ b/src/mongo/db/commands/dbcommands.cpp
@@ -547,7 +547,7 @@ public:
virtual Status checkAuthForCommand(Client* client,
const std::string& dbname,
const BSONObj& cmdObj) const {
- const NamespaceString nss(parseNs(dbname, cmdObj));
+ const NamespaceString nss(parseNs({boost::none, dbname}, cmdObj));
return auth::checkAuthForCollMod(
client->getOperationContext(), AuthorizationSession::get(client), nss, cmdObj, false);
}