summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/whats_my_uri_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/whats_my_uri_cmd.cpp')
-rw-r--r--src/mongo/db/commands/whats_my_uri_cmd.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/commands/whats_my_uri_cmd.cpp b/src/mongo/db/commands/whats_my_uri_cmd.cpp
index 33634534444..e791d492a7b 100644
--- a/src/mongo/db/commands/whats_my_uri_cmd.cpp
+++ b/src/mongo/db/commands/whats_my_uri_cmd.cpp
@@ -55,9 +55,11 @@ public:
return "{whatsmyuri:1}";
}
- void addRequiredPrivileges(const std::string& dbname,
- const BSONObj& cmdObj,
- std::vector<Privilege>* out) const override {} // No auth required
+ Status checkAuthForOperation(OperationContext* opCtx,
+ const DatabaseName& dbName,
+ const BSONObj& cmdObj) const override {
+ return Status::OK(); // No auth required
+ }
bool run(OperationContext* opCtx,
const DatabaseName&,