diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-11-14 15:49:24 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-11-14 15:49:58 -0500 |
commit | d4ba20e72751af8982ef1318cd3e61fa17f67fed (patch) | |
tree | 2967a3cf390c7a8bad2084010cff263173adaae4 | |
parent | 0f14f054c2cc5985a372469c009beea21af67ce8 (diff) | |
download | mongo-d4ba20e72751af8982ef1318cd3e61fa17f67fed.tar.gz |
make buildInfo not require auth again (back to 1.8 behavior) SERVER-3837
-rw-r--r-- | db/dbcommands_generic.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/dbcommands_generic.cpp b/db/dbcommands_generic.cpp index 69b51c75844..22cee2270d0 100644 --- a/db/dbcommands_generic.cpp +++ b/db/dbcommands_generic.cpp @@ -51,7 +51,8 @@ namespace mongo { public: CmdBuildInfo() : Command( "buildInfo", true, "buildinfo" ) {} virtual bool slaveOk() const { return true; } - virtual bool adminOnly() const { return true; } + virtual bool adminOnly() const { return false; } + virtual bool requiresAuth() { return false; } virtual LockType locktype() const { return NONE; } virtual void help( stringstream &help ) const { help << "get version #, etc.\n"; |