diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-05-14 17:33:25 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-05-22 19:14:01 -0400 |
commit | eb719438afc316e9bf56bf716a129def27f5e768 (patch) | |
tree | b00f395fec7c39ebc2e074cc77e4bd1bf9bbca2b /src/mongo/db/dbeval.cpp | |
parent | 83900ac233c2a94e0f3e6a1628cf822f9bb88425 (diff) | |
download | mongo-eb719438afc316e9bf56bf716a129def27f5e768.tar.gz |
Split AuthorizationManager into 2 classes: AuthorizationManager and AuthorizationSession.
Diffstat (limited to 'src/mongo/db/dbeval.cpp')
-rw-r--r-- | src/mongo/db/dbeval.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/dbeval.cpp b/src/mongo/db/dbeval.cpp index 3be7333a288..bb358fa7534 100644 --- a/src/mongo/db/dbeval.cpp +++ b/src/mongo/db/dbeval.cpp @@ -21,6 +21,8 @@ #include <time.h> #include "mongo/bson/util/builder.h" +#include "mongo/db/auth/authorization_session.h" +#include "mongo/db/auth/privilege_set.h" #include "mongo/db/cmdline.h" #include "mongo/db/commands.h" #include "mongo/db/introspect.h" @@ -121,7 +123,7 @@ namespace mongo { std::vector<Privilege>* out) { // $eval can do pretty much anything, so require all privileges. out->push_back(Privilege(PrivilegeSet::WILDCARD_RESOURCE, - AuthorizationManager::getAllUserActions())); + AuthorizationSession::getAllUserActions())); } CmdEval() : Command("eval", false, "$eval") { } bool run(const string& dbname , BSONObj& cmdObj, int, string& errmsg, BSONObjBuilder& result, bool fromRepl) { |