summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/commands/isself.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/db/commands/isself.cpp b/src/mongo/db/commands/isself.cpp
index f0cb399a73a..83718139e7a 100644
--- a/src/mongo/db/commands/isself.cpp
+++ b/src/mongo/db/commands/isself.cpp
@@ -51,9 +51,12 @@ public:
std::string help() const override {
return "{ _isSelf : 1 } INTERNAL ONLY";
}
- virtual void addRequiredPrivileges(const std::string& dbname,
- const BSONObj& cmdObj,
- std::vector<Privilege>* out) const {} // No auth required
+ bool requiresAuth() const override {
+ return false;
+ }
+ void addRequiredPrivileges(const std::string& dbname,
+ const BSONObj& cmdObj,
+ std::vector<Privilege>* out) const override {}
bool run(OperationContext* opCtx,
const string& dbname,
const BSONObj& cmdObj,