diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-02-05 14:31:11 -0500 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-02-06 10:16:15 -0500 |
commit | 09d4e0d92d5678a21de3cf6138631998c62d20fb (patch) | |
tree | 16bec911c97f81bfd37ef58dbc76d6536e21885a /src/mongo/db/commands/authentication_commands.cpp | |
parent | 1f376bcf8824df1a6122c297d5205daa1e6ff8a7 (diff) | |
download | mongo-09d4e0d92d5678a21de3cf6138631998c62d20fb.tar.gz |
SERVER-33136 const-ify the command auth accessors
Diffstat (limited to 'src/mongo/db/commands/authentication_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/authentication_commands.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/authentication_commands.cpp b/src/mongo/db/commands/authentication_commands.cpp index 0b925c3d84c..a9d39eda35d 100644 --- a/src/mongo/db/commands/authentication_commands.cpp +++ b/src/mongo/db/commands/authentication_commands.cpp @@ -111,7 +111,7 @@ public: void addRequiredPrivileges(const std::string& dbname, const BSONObj& cmdObj, - std::vector<Privilege>* out) final { + std::vector<Privilege>* out) const final { // No auth required since this command was explicitly part // of an authentication workflow. } @@ -264,7 +264,7 @@ public: } virtual void addRequiredPrivileges(const std::string& dbname, const BSONObj& cmdObj, - std::vector<Privilege>* out) {} // No auth required + std::vector<Privilege>* out) const {} // No auth required std::string help() const override { return "de-authenticate"; } |