diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-06-04 13:43:13 -0400 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-06-05 13:48:57 -0400 |
commit | a54afcecfd5b802904c3224de9e35348621bd2dc (patch) | |
tree | 778cf959c3473d32e0d05566418c777a0582cff0 /src/mongo/db/commands/isself.cpp | |
parent | bc2902cbf59d877253ce6eb94451515aa1e47062 (diff) | |
download | mongo-a54afcecfd5b802904c3224de9e35348621bd2dc.tar.gz |
SERVER-35382 _isSelf requiresAuth false
(cherry picked from commit 34345645bb77e0f1804f63ae1be454e468612ecd)
Diffstat (limited to 'src/mongo/db/commands/isself.cpp')
-rw-r--r-- | src/mongo/db/commands/isself.cpp | 9 |
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, |