diff options
Diffstat (limited to 'src/mongo/db/repl/repl_set_command.cpp')
-rw-r--r-- | src/mongo/db/repl/repl_set_command.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mongo/db/repl/repl_set_command.cpp b/src/mongo/db/repl/repl_set_command.cpp index 5ff784352cd..2dd2178cdba 100644 --- a/src/mongo/db/repl/repl_set_command.cpp +++ b/src/mongo/db/repl/repl_set_command.cpp @@ -35,15 +35,15 @@ namespace mongo { namespace repl { - Status ReplSetCommand::checkAuthForCommand(ClientBasic* client, - const std::string& dbname, - const BSONObj& cmdObj) { - if (!AuthorizationSession::get(client)->isAuthorizedForActionsOnResource( - ResourcePattern::forClusterResource(), ActionType::internal)) { - return {ErrorCodes::Unauthorized, "Unauthorized"}; - } - return Status::OK(); +Status ReplSetCommand::checkAuthForCommand(ClientBasic* client, + const std::string& dbname, + const BSONObj& cmdObj) { + if (!AuthorizationSession::get(client)->isAuthorizedForActionsOnResource( + ResourcePattern::forClusterResource(), ActionType::internal)) { + return {ErrorCodes::Unauthorized, "Unauthorized"}; } + return Status::OK(); +} -} // namespace repl -} // namespace mongo +} // namespace repl +} // namespace mongo |