diff options
Diffstat (limited to 'src/mongo/db/commands/write_commands/write_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/write_commands/write_commands.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/commands/write_commands/write_commands.cpp b/src/mongo/db/commands/write_commands/write_commands.cpp index c9b77e1b831..9f14dec2bb2 100644 --- a/src/mongo/db/commands/write_commands/write_commands.cpp +++ b/src/mongo/db/commands/write_commands/write_commands.cpp @@ -82,11 +82,14 @@ namespace mongo { bool WriteCmd::isWriteCommandForConfigServer() const { return false; } - Status WriteCmd::checkAuthForCommand( ClientBasic* client, + Status WriteCmd::checkAuthForCommand( OperationContext* txn, + ClientBasic* client, const std::string& dbname, const BSONObj& cmdObj ) { - Status status( auth::checkAuthForWriteCommand( client->getAuthorizationSession(), + Status status( auth::checkAuthForWriteCommand( + txn, + client->getAuthorizationSession(), _writeType, NamespaceString( parseNs( dbname, cmdObj ) ), cmdObj )); |