summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/shutdown.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/shutdown.h')
-rw-r--r--src/mongo/db/commands/shutdown.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/commands/shutdown.h b/src/mongo/db/commands/shutdown.h
index 757f14b432c..446c78632e0 100644
--- a/src/mongo/db/commands/shutdown.h
+++ b/src/mongo/db/commands/shutdown.h
@@ -114,13 +114,6 @@ public:
Command::AllowedOnSecondary secondaryAllowed(ServiceContext*) const override {
return Command::AllowedOnSecondary::kAlways;
}
- virtual void addRequiredPrivileges(const std::string& dbname,
- const BSONObj& cmdObj,
- std::vector<Privilege>* out) const {
- ActionSet actions;
- actions.addAction(ActionType::shutdown);
- out->push_back(Privilege(ResourcePattern::forClusterResource(), actions));
- }
};
} // namespace mongo